- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 5,360 for watt (0.04 sec)
-
src/vendor/golang.org/x/net/nettest/conntest.go
f(t, c1, c2) } // testBasicIO tests that the data sent on c1 is properly received on c2. func testBasicIO(t *testing.T, c1, c2 net.Conn) { want := make([]byte, 1<<20) rand.New(rand.NewSource(0)).Read(want) dataCh := make(chan []byte) go func() { rd := bytes.NewReader(want) if err := chunkedCopy(c1, rd); err != nil { t.Errorf("unexpected c1.Write error: %v", err) } if err := c1.Close(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 12.2K bytes - Viewed (0) -
src/strings/reader_test.go
continue } if tt.wantpos != 0 && tt.wantpos != pos { t.Errorf("%d. pos = %d, want %d", i, pos, tt.wantpos) } buf := make([]byte, tt.n) n, err := r.Read(buf) if err != tt.readerr { t.Errorf("%d. read = %v; want %v", i, err, tt.readerr) continue } got := string(buf[:n]) if got != tt.want { t.Errorf("%d. got %q; want %q", i, got, tt.want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 5.9K bytes - Viewed (0) -
src/cmd/go/internal/script/engine.go
// This error was surfaced from a background process by a call to Wait. // Add a call frame for Wait itself, but ignore its "want" field. // (Wait itself cannot fail to wait on commands or else it would leak // processes and/or goroutines — so a negative assertion for it would be at // best ambiguous.) return cmdError(cmd, err) } if cmd.want == success { return cmdError(cmd, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0) -
src/net/sendfile_test.go
c, err := Dial("tcp", ln.Addr().String()) if err != nil { t.Fatal(err) } defer c.Close() buf := new(bytes.Buffer) buf.ReadFrom(c) if want, have := "Produced ", buf.String(); have != want { t.Errorf("unexpected server reply %q, want %q", have, want) } for err := range errc { t.Error(err) } } func TestSendfileSeeked(t *testing.T) { ln := newLocalListener(t, "tcp")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0) -
src/os/signal/signal_test.go
c, stop := NotifyContext(parent, syscall.SIGINT) defer stop() if want, got := "signal.NotifyContext(context.Background.WithCancel, [interrupt])", fmt.Sprint(c); want != got { t.Errorf("c.String() = %q, want %q", got, want) } cancelParent() <-c.Done() if got := c.Err(); got != context.Canceled { t.Errorf("c.Err() = %q, want %q", got, context.Canceled) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
src/sync/atomic/value_test.go
atomic.AddUint64(&count, c) g.Done() }() } g.Wait() if want, got := (m*n-1)*(m*n)/2, count+v.Load().(uint64); got != want { t.Errorf("sum from 0 to %d was %d, want %v", m*n-1, got, want) } } var heapA, heapB = struct{ uint }{0}, struct{ uint }{0} var Value_CompareAndSwapTests = []struct { init any new any old any want bool err any }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audiences_test.go
auds: Audiences{"foo", "bar"}, tauds: Audiences{"foo", "wat"}, expected: Audiences{"foo"}, }, { auds: Audiences{"foo", "bar"}, tauds: Audiences{"pls", "wat"}, expected: Audiences{}, }, } for _, c := range cs { t.Run("auds", func(t *testing.T) { if got, want := c.auds.Intersect(c.tauds), c.expected; !reflect.DeepEqual(got, want) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 31 21:50:11 UTC 2018 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/error_test.go
tests := []struct { name string err error want bool }{ { err: ErrWaitTimeout, want: true, }, { err: context.Canceled, want: true, }, { err: context.DeadlineExceeded, want: true, }, { err: errWrapper{ErrWaitTimeout}, want: true, }, { err: errWrapper{context.Canceled}, want: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 2.8K bytes - Viewed (0) -
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)