- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 7,983 for testAny (0.14 sec)
-
src/runtime/crash_cgo_test.go
package runtime_test import ( "fmt" "internal/goos" "internal/platform" "internal/testenv" "os" "os/exec" "runtime" "strconv" "strings" "testing" "time" ) func TestCgoCrashHandler(t *testing.T) { t.Parallel() testCrashHandler(t, true) } func TestCgoSignalDeadlock(t *testing.T) { // Don't call t.Parallel, since too much work going on at the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (1) -
src/cmd/pprof/pprof_test.go
// // This is a regression test for issue 46636. func TestDisasm(t *testing.T) { mustHaveCPUProfiling(t) mustHaveDisasm(t) testenv.MustHaveGoBuild(t) tmpdir := t.TempDir() cpuExe := filepath.Join(tmpdir, "cpu.exe") cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", cpuExe, "cpu.go") cmd.Dir = "testdata/" out, err := cmd.CombinedOutput() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 3.4K bytes - Viewed (0) -
src/runtime/checkptr_test.go
package runtime_test import ( "internal/testenv" "os/exec" "strings" "testing" ) func TestCheckPtr(t *testing.T) { // This test requires rebuilding packages with -d=checkptr=1, // so it's somewhat slow. if testing.Short() { t.Skip("skipping test in -short mode") } t.Parallel() testenv.MustHaveGoRun(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 17:15:15 UTC 2022 - 2.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/nooptcgolink_test.go
package ld import ( "internal/testenv" "path/filepath" "testing" ) func TestNooptCgoBuild(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode.") } t.Parallel() testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) dir := t.TempDir() cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags=-N -l", "-o", filepath.Join(dir, "a.out"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:14 UTC 2022 - 733 bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
"fmt" "go/ast" "go/parser" "go/token" "internal/testenv" "os" "path/filepath" "runtime" "strings" "testing" ) // runGenTest runs a test-generator, then runs the generated test. // Generated test can either fail in compilation or execution. // The environment variable parameter(s) is passed to the run // of the generated test. func runGenTest(t *testing.T, filename, tmpname string, ev ...string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/go_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ld import ( "internal/testenv" "os" "path/filepath" "reflect" "runtime" "testing" "cmd/internal/objabi" ) func TestDedupLibraries(t *testing.T) { ctxt := &Link{} ctxt.Target.HeadType = objabi.Hlinux libs := []string{"libc.so", "libc.so.6"} got := dedupLibraries(ctxt, libs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:14 UTC 2022 - 2.7K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
package gcimporter_test import ( "bytes" "fmt" "internal/testenv" "os" "os/exec" "path" "path/filepath" "runtime" "strings" "testing" "time" "go/ast" "go/build" "go/importer" "go/parser" "go/token" "go/types" . "go/internal/gcimporter" ) 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: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/short_test.go
} } // TestShortCircuit tests OANDAND and OOROR expressions and short circuiting. func TestShortCircuit(t *testing.T) { testAnd(t, false, false, false) testAnd(t, false, true, false) testAnd(t, true, false, false) testAnd(t, true, true, true) testOr(t, false, false, false) testOr(t, false, true, true) testOr(t, true, false, true) testOr(t, true, true, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/clobberdead_test.go
package test import ( "internal/testenv" "os" "path/filepath" "testing" ) const helloSrc = ` package main import "fmt" func main() { fmt.Println("hello") } ` func TestClobberDead(t *testing.T) { // Test that clobberdead mode generates correct program. runHello(t, "-clobberdead") } func TestClobberDeadReg(t *testing.T) { // Test that clobberdeadreg mode generates correct program.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:19:15 UTC 2022 - 1.2K bytes - Viewed (0) -
pkg/cmd/flag_test.go
package cmd import ( "flag" "testing" "time" "github.com/spf13/cobra" "github.com/spf13/pflag" ) const ( defaultInt = 100 defaultString = "my default string" defaultBool = true defaultDuration = 24 * time.Hour ) func TestInitializeIntFlag(t *testing.T) { cmd := &cobra.Command{} var testInt int flag.IntVar(&testInt, "testint", defaultInt, "test int flag") AddFlags(cmd)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 3.4K bytes - Viewed (0)