- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 79 for testMain (0.32 sec)
-
platforms/jvm/language-java/src/integTest/groovy/org/gradle/integtests/ExecIntegrationTest.groovy
task javaexecTask(type: JavaExec) { def testFile = file("${'$'}buildDir/${'$'}name") classpath(sourceSets.main.output.classesDirs) mainClass = 'org.gradle.TestMain' args projectDir, testFile doLast { assert testFile.exists() } assert delegate instanceof ExtensionAware }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 22 20:01:36 UTC 2024 - 13.8K bytes - Viewed (0) -
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) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorServicesIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 12.4K bytes - Viewed (0) -
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) -
src/cmd/cover/cover_test.go
// testTempDir is a temporary directory created in TestMain. var testTempDir string // If set, this will preserve all the tmpdir files from the test run. var debug = flag.Bool("debug", false, "keep tmpdir files for debugging") // TestMain used here so that we can leverage the test executable // itself as a cmd/cover executable; compare to similar usage in // the cmd/go tests. func TestMain(m *testing.M) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
src/testing/testing_test.go
"path/filepath" "regexp" "slices" "strings" "sync" "testing" "time" ) // This is exactly what a test would do without a TestMain. // It's here only so that there is at least one package in the // standard library with a TestMain, so that code is executed. func TestMain(m *testing.M) { if os.Getenv("GO_WANT_RACE_BEFORE_TESTS") == "1" { doRace() } m.Run()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/shared_test.go
log.Panicf("executing %s failed %v:\n%s", strings.Join(c.Args, " "), err, stderr) } } if testing.Verbose() && t != nil { t.Logf("go %s", strings.Join(args, " ")) if stderr.Len() > 0 { t.Logf("%s", stderr) } } return string(bytes.TrimSpace(output)) } // TestMain calls testMain so that the latter can use defer (TestMain exits with os.Exit).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
"runtime" "strings" "testing" "time" ) var globalSkip = func(t *testing.T) {} var gcflags string = os.Getenv("GO_GCFLAGS") var goroot string func TestMain(m *testing.M) { flag.Parse() log.SetFlags(log.Lshortfile) os.Exit(testMain(m)) } // tmpDir is used to cleanup logged commands -- s/tmpDir/$TMPDIR/ var tmpDir string // prettyPrintf prints lines with tmpDir sanitized.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0) -
src/internal/coverage/defs.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 12:51:16 UTC 2023 - 11.9K bytes - Viewed (0) -
tests/integration/ambient/main_test.go
// WaypointProxies by WaypointProxies map[string]ambient.WaypointProxy } // 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: Wed Jun 12 00:07:28 UTC 2024 - 10.8K bytes - Viewed (0)