- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 4,315 for watt (0.05 sec)
-
src/runtime/proc_test.go
} output := runTestProg(t, "testprog", "AsyncPreempt") want := "OK\n" if output != want { t.Fatalf("want %s, got %s\n", want, output) } } func TestGCFairness(t *testing.T) { output := runTestProg(t, "testprog", "GCFairness") want := "OK\n" if output != want { t.Fatalf("want %s, got %s\n", want, output) } } func TestGCFairness2(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.8K bytes - Viewed (0) -
src/runtime/profbuf_test.go
write(t, b, unsafe.Pointer(&myTags[2]), 99, []uint64{101, 102}, []uintptr{201, 202, 203, 204}) wait() wait = readBlock(t, b, nil, nil) b.Close() wait() wait = readBlock(t, b, nil, nil) wait() readEOF(t, b) }) t.Run("DataWraparound", func(t *testing.T) { b := NewProfBuf(2, 16, 1024) for i := 0; i < 10; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 15 20:04:56 UTC 2023 - 8.5K bytes - Viewed (0) -
src/runtime/metrics_test.go
} } if totalVirtual.got != totalVirtual.want { t.Errorf(`"/memory/classes/total:bytes" does not match sum of /memory/classes/**: got %d, want %d`, totalVirtual.got, totalVirtual.want) } if got, want := objects.allocs-objects.frees, objects.total; got != want { t.Errorf("mismatch between object alloc/free tallies and total: got %d, want %d", got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup_test.go
import ( "context" "strings" "sync" "testing" "time" "golang.org/x/time/rate" "k8s.io/apimachinery/pkg/util/wait" ) func TestRateLimitedSafeWaitGroup(t *testing.T) { // we want to keep track of how many times rate limiter Wait method is // being invoked, both before and after the wait group is in waiting mode. limiter := &limiterWrapper{} // we expect the context passed by the factory to be used
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 21 14:08:00 UTC 2023 - 8.6K bytes - Viewed (0) -
src/runtime/runtime_test.go
} } check(0) want := 1 for i := 1; i <= 100; i++ { x = append(x, 1) check(want) if i&(i-1) == 0 { want = 2 * i } } } var One = []int64{1} func TestAppendSliceGrowth(t *testing.T) { var x []int64 check := func(want int) { if cap(x) != want { t.Errorf("len=%d, cap=%d, want cap=%d", len(x), cap(x), want) } } check(0) want := 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/os/exec/exec_posix_test.go
if err != nil { t.Fatalf("%v:\n%s", err, cmd.Stderr) } got := strings.Trim(string(out), "\r\n") t.Logf("in\n\t%s\n`pwd` reported\n\t%s", tc.dir, got) if got != tc.want { t.Errorf("want\n\t%s", tc.want) } }) } } // However, if cmd.Env is set explicitly, setting Dir should not override it. // (This checks that the implementation for https://go.dev/issue/50599 doesn't
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 20:21:32 UTC 2022 - 6.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/goroot_executable.txt
if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } want, err := filepath.EvalSymlinks(os.Args[1]) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } if !strings.EqualFold(goroot, want) { fmt.Fprintf(os.Stderr, "go env GOROOT:\nhave %s\nwant %s\n", goroot, want) os.Exit(1) } fmt.Fprintf(os.Stderr, "go env GOROOT: %s\n", goroot)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/grpc_service_unix_test.go
// Keeping plugin up to process requests. testCompletedWG.Wait() }() kubeAPIServerWG.Wait() if t.Failed() { return } _, err = service.Encrypt(data) if err == nil && tt.wantErr != "" { t.Fatalf("got nil, want %s", tt.wantErr) } if err != nil && tt.wantErr == "" { t.Fatalf("got %q, want nil", err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 05:36:41 UTC 2023 - 10K bytes - Viewed (0) -
samples/tcp-echo/src/main_test.go
func TestTcpEchoServer(t *testing.T) { // set up test parameters prefix := "hello" request := "world" want := prefix + " " + request // start the TCP Echo Server os.Args = []string{"main", "9000,9001", prefix} go main() // wait for the TCP Echo Server to start time.Sleep(500 * time.Millisecond) for _, addr := range []string{":9000", ":9001"} {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 06 09:12:44 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/controller/job/tracking_utils_test.go
} }) } } func validateTerminatedPodsTrackingFinalizerTotal(event string, want int) error { got, err := testutil.GetCounterMetricValue(metrics.TerminatedPodsTrackingFinalizerTotal.WithLabelValues(event)) if err != nil { return err } if int(got) != want { return fmt.Errorf("got value %d, want %d", int(got), want) } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 5.9K bytes - Viewed (0)