- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 4,774 for watt (0.1 sec)
-
src/net/dnsclient_unix_test.go
if err != nil { t.Fatal("LookupTXT failed:", err) } if want := 2; len(txt) != want { t.Fatalf("len(txt), got %d, want %d", len(txt), want) } if want := "string1 string2"; txt[0] != want { t.Errorf("txt[0], got %q, want %q", txt[0], want) } if want := "onestring"; txt[1] != want { t.Errorf("txt[1], got %q, want %q", txt[1], want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0) -
src/os/timeout_test.go
if t1.Before(deadline) { t.Errorf("Read took %s; expected at least %s", actual, d) } if t.Failed() { return } if want := timeoutUpperBound(d); actual > want { next, ok := nextTimeout(actual) if !ok { t.Fatalf("Read took %s; expected at most %v", actual, want) } // Maybe this machine is too slow to reliably schedule goroutines within // the requested duration. Increase the timeout and try again.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 17.1K bytes - Viewed (0) -
src/runtime/debuglog_test.go
if want := "[] true false -42 32767 18446744073709551615 0xfff 0x0 aaaa const string\n"; got != want { t.Fatalf("want %q, got %q", want, got) } } func TestDebugLogSym(t *testing.T) { skipDebugLog(t) runtime.ResetDebugLog() pc, _, _, _ := runtime.Caller(0) runtime.Dlog().PC(pc).End() got := dlogCanonicalize(runtime.DumpDebugLog())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 16:59:26 UTC 2022 - 4.9K bytes - Viewed (0) -
src/testing/testing_test.go
want := 0 if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports; want %d", c, want) } } func TestBenchmarkRace(t *testing.T) { out := runTest(t, "BenchmarkRacy") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // We should see one race detector report. if race.Enabled {
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/net/http/transport_test.go
res.Body.Close() t.Errorf("unexpected success") } r := <-reqc if got, want := r.Header.Get("User-Agent"), "foo"; got != want { t.Errorf("CONNECT request User-Agent = %q; want %q", got, want) } if got, want := r.Header.Get("Other"), "bar"; got != want { t.Errorf("CONNECT request Other = %q; want %q", got, want) } } func TestTransportProxyGetConnectHeader(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
src/os/exec/exec_windows_test.go
t.Error(err) } w.Close() response, err := io.ReadAll(r) if err != nil { t.Error(err) } r.Close() if string(response) != marker { t.Errorf("got %q; want %q", string(response), marker) } err = childProc.Wait() if err != nil { t.Error(err) } } func TestNoInheritHandles(t *testing.T) { t.Parallel() cmd := testenv.Command(t, "cmd", "/c exit 88")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 23:07:55 UTC 2023 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go
// /readyz must return an error, but we need to give it some time err := wait.PollImmediate(100*time.Millisecond, wait.ForeverTestTimeout, func() (done bool, err error) { resultGot := doer.Do(newClient(true), func(httptrace.GotConnInfo) {}, "/readyz", time.Second) // wait until we have a non 200 response if resultGot.response != nil && resultGot.response.StatusCode == http.StatusOK {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 38.3K bytes - Viewed (0) -
test/typeparam/chans.go
func TestReadAll() { c := make(chan int) go func() { c <- 4 c <- 2 c <- 5 close(c) }() got := _ReadAll(context.Background(), c) want := []int{4, 2, 5} if !_SliceEqual(got, want) { panic(fmt.Sprintf("_ReadAll returned %v, want %v", got, want)) } } func TestMerge() { c1 := make(chan int) c2 := make(chan int) go func() { c1 <- 1 c1 <- 3 c1 <- 5 close(c1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0) -
src/runtime/debug_test.go
for i := range in { out[i] = in[i] + 1 } return } var want [N]int for i := range args.in { args.in[i] = i want[i] = i + 1 } if _, err := runtime.InjectDebugCall(g, fn, nil, &args, debugCallTKill, false); err != nil { t.Fatal(err) } if want != args.out { t.Fatalf("want %v, got %v", want, args.out) } } func TestDebugCallGC(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 15:08:04 UTC 2023 - 8K bytes - Viewed (0) -
src/net/dial_unix_test.go
if err == nil { c.Close() t.Fatal("unexpected successful dial; want context canceled error") } select { case <-ctx.Done(): case <-time.After(5 * time.Second): t.Fatal("expected context to be canceled") } oe, ok := err.(*OpError) if !ok || oe.Op != "dial" { t.Fatalf("Dial error = %#v; want dial *OpError", err) } if oe.Err != errCanceled {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 2.8K bytes - Viewed (0)