Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for testFork (0.28 sec)

  1. src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go

    )
    
    var (
    	updateTestData = flag.Bool("u", false, "when set, tests may update files in testdata instead of failing")
    	enableZipSum   = flag.Bool("zipsum", false, "enable TestZipSums")
    	debugZipSum    = flag.Bool("testwork", false, "when set, TestZipSums will preserve its test directory")
    	modCacheDir    = flag.String("zipsumcache", "", "module cache to use instead of temp directory")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 19:33:59 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/go/go_test.go

    	}
    }
    
    // If -testwork is specified, the test prints the name of the temp directory
    // and does not remove it when done, so that a programmer can
    // poke at the test file tree afterward.
    var testWork = flag.Bool("testwork", false, "")
    
    // cleanup cleans up a test that runs testgo.
    func (tg *testgoData) cleanup() {
    	tg.t.Helper()
    	if *testWork {
    		if tg.tempdir != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4TestClassDetectionIntegrationTest.groovy

                    public class NonStaticInner {
                        @Test public void ok() { }
                    }
    
                    public class NonStaticInnerTestCase extends TestCase {
                        public void testOk() { }
                    }
                }
            """.stripIndent()
            writeCustomRunnerClass('CustomRunnerOrExtension')
            buildFile << """
                apply plugin: 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			m := NewMatcher(&fakeCelFilter{
    				evaluations: tc.evaluations,
    				throwError:  tc.throwError,
    			}, tc.failPolicy, "webhook", "test", "testhook")
    			ctx := context.TODO()
    			matchResult := m.Match(ctx, fakeVersionedAttr, nil, nil)
    
    			if matchResult.Error != nil {
    				if len(tc.expectError) == 0 {
    					t.Fatal(matchResult.Error)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testshared/shared_test.go

    var minpkgs = []string{"runtime", "sync/atomic"}
    var soname = "libruntime,sync-atomic.so"
    
    var testX = flag.Bool("testx", false, "if true, pass -x to 'go' subcommands invoked by the test")
    var testWork = flag.Bool("testwork", false, "if true, log and do not delete the temporary working directory")
    
    // run runs a command and calls t.Errorf if it fails.
    func run(t *testing.T, msg string, args ...string) {
    	runWithEnv(t, msg, nil, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  6. src/cmd/go/scriptreadme_test.go

    Note also that in reported output, the actual name of the per-script temporary directory
    has been consistently replaced with the literal string $WORK.
    
    The cmd/go test flag -testwork (which must appear on the "go test" command line after
    standard test flags) causes each test to log the name of its $WORK directory and other
    environment variable settings and also to leave that directory behind when it exits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy

                import org.junit.jupiter.api.Test;
                import static org.assertj.core.api.Assertions.assertThat;
    
                public class ExampleTest {
                    @Test public void testOK() {
                        assertThat(1 + 1).isEqualTo(2);
                    }
                }
            """
    
            settingsFile << """
                dependencyResolutionManagement {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 20:36:32 UTC 2023
    - 35.8K bytes
    - Viewed (0)
  8. src/go/doc/testdata/testing.go

    	flag.Parse()
    	parseCpuList()
    
    	before()
    	startAlarm()
    	testOk := RunTests(matchString, tests)
    	exampleOk := RunExamples(examples)
    	if !testOk || !exampleOk {
    		fmt.Println("FAIL")
    		os.Exit(1)
    	}
    	fmt.Println("PASS")
    	stopAlarm()
    	RunBenchmarks(matchString, benchmarks)
    	after()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/cmd/go/script_test.go

    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    			StartProxy()
    
    			workdir, err := os.MkdirTemp(testTmpDir, name)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !*testWork {
    				defer removeAll(workdir)
    			}
    
    			s, err := script.NewState(tbContext(ctx, t), workdir, env)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			// Unpack archive.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/README

    Note also that in reported output, the actual name of the per-script temporary directory
    has been consistently replaced with the literal string $WORK.
    
    The cmd/go test flag -testwork (which must appear on the "go test" command line after
    standard test flags) causes each test to log the name of its $WORK directory and other
    environment variable settings and also to leave that directory behind when it exits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top