Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for testMain (0.23 sec)

  1. src/cmd/go/internal/load/test.go

    		switch {
    		case name == "TestMain":
    			if isTestFunc(n, "T") {
    				t.Tests = append(t.Tests, testFunc{pkg, name, "", false})
    				*doImport, *seen = true, true
    				continue
    			}
    			err := checkTestFunc(n, "M")
    			if err != nil {
    				return err
    			}
    			if t.TestMain != nil {
    				return errors.New("multiple definitions of TestMain")
    			}
    			t.TestMain = &testFunc{pkg, name, "", false}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tests/integration/README.md

    it is bootstrapped by a Go `TestMain`, which has the same restriction.
    
    To begin, create a new folder for your suite under
    [tests/integration](https://github.com/istio/istio/tree/master/tests/integration).
    
    ```console
    $ cd ${ISTIO}/tests/integration
    $ mkdir mysuite
    ```
    
    Within that package, create a `TestMain` to bootstrap the test suite:
    
    ```go
    func TestMain(m *testing.M) {
        framework.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top