Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for testMain (0.18 sec)

  1. src/runtime/debug/stack_test.go

    	// It should contain a crash report such as this:
    	//
    	// panic: oops
    	//
    	// goroutine 1 [running]:
    	// runtime/debug_test.TestMain(0x1400007e0a0)
    	// 	GOROOT/src/runtime/debug/stack_test.go:33 +0x18c
    	// main.main()
    	// 	_testmain.go:71 +0x170
    	data, err := os.ReadFile(crashOutput)
    	if err != nil {
    		t.Fatalf("child process failed to write crash report: %v", err)
    	}
    	crash := string(data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/aggregate/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package aggregate
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 794 bytes
    - Viewed (0)
  3. pkg/kube/kclient/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package kclient
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 792 bytes
    - Viewed (0)
  4. pkg/kube/krt/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 788 bytes
    - Viewed (0)
  5. security/pkg/nodeagent/caclient/providers/citadel/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package citadel
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 21:03:23 UTC 2024
    - 792 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go

    func isOpen() bool {
    	openedMu.Lock()
    	defer openedMu.Unlock()
    	return opened
    }
    
    // Open enables telemetry data writing to disk.
    // This is supposed to be called once during the program execution
    // (i.e. typically in TestMain), and must not be used with
    // golang.org/x/telemetry/counter.Open.
    func Open(telemetryDir string) {
    	openedMu.Lock()
    	defer openedMu.Unlock()
    	if opened {
    		panic("Open was called more than once")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. pilot/pkg/server/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package server
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 791 bytes
    - Viewed (0)
  8. pkg/kube/inject/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package inject
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 791 bytes
    - Viewed (0)
  9. pilot/pkg/leaderelection/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package leaderelection
    
    import (
    	"testing"
    
    	"istio.io/istio/tests/util/leak"
    )
    
    func TestMain(m *testing.M) {
    	// CheckMain asserts that no goroutines are leaked after a test package exits.
    	leak.CheckMain(m)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 799 bytes
    - Viewed (0)
  10. tests/integration/ambient/cnirepair/main_test.go

    	Sidecar echo.Instances
    
    	// All echo services
    	All echo.Instances
    }
    
    // TestMain defines the entrypoint for pilot tests using a standard Istio installation.
    // If a test requires a custom install it should go into its own package, otherwise it should go
    // here to reuse a single install across tests.
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		RequireMinVersion(24).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 09 09:12:45 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top