Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for testMain (0.25 sec)

  1. platforms/jvm/language-java/src/integTest/resources/org/gradle/integtests/ExecIntegrationTest/shared/src/main/java/org/gradle/TestMain.java

    package org.gradle;
    
    import java.io.File;
    
    public class TestMain {
        public static void main(String[] args) throws Exception {
            File expectedWorkingDir = new File(args[0]).getCanonicalFile();
            File actualWorkingDir = new File(System.getProperty("user.dir")).getCanonicalFile();
            if (!expectedWorkingDir.getCanonicalFile().equals(actualWorkingDir)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 716 bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package core
    
    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: Thu Mar 28 17:09:02 UTC 2024
    - 789 bytes
    - Viewed (0)
  3. 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)
  4. src/go/types/main_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types_test
    
    import (
    	"go/build"
    	"internal/testenv"
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	build.Default.GOROOT = testenv.GOROOT(nil)
    	os.Exit(m.Run())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 464 bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/leak_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package route
    
    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: Thu Mar 28 17:09:02 UTC 2024
    - 790 bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top