- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for testClone (0.22 sec)
-
src/bytes/bytes_test.go
buf := make([]byte, 1<<16) for i := 0; i < len(buf); i += skip { buf[i] = 1 } for i := 0; i < b.N; i++ { Index(buf, key) } }) } } func TestClone(t *testing.T) { var cloneTests = [][]byte{ []byte(nil), []byte{}, Clone([]byte{}), []byte(strings.Repeat("a", 42))[:0], []byte(strings.Repeat("a", 42))[:0:0], []byte("short"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/time/time_test.go
} return true } // manual test cases for _, tt := range truncateRoundTests { testOne(tt.t.Unix(), int64(tt.t.Nanosecond()), int64(tt.d)) } // exhaustive near 0 for i := 0; i < 100; i++ { for j := 1; j < 100; j++ { testOne(unixToZero, int64(i), int64(j)) testOne(unixToZero, -int64(i), int64(j)) if t.Failed() { return } } } if t.Failed() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
src/net/http/client_test.go
func testClientTimeoutCancel(t *testing.T, mode testMode) { testDone := make(chan struct{}) ctx, cancel := context.WithCancel(context.Background()) cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { w.(Flusher).Flush() <-testDone })) defer close(testDone) cst.c.Timeout = 1 * time.Hour req, _ := NewRequest("GET", cst.ts.URL, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
src/crypto/tls/handshake_server_test.go
s.Close() var opErr *net.OpError if !errors.As(err, &opErr) || opErr.Err != error(alertUnknownCA) { t.Errorf("Got error: %s; expected: %s", err, error(alertUnknownCA)) } } func TestClose(t *testing.T) { c, s := localPipe(t) go c.Close() err := Server(s, testConfig).Handshake() s.Close() if err != io.EOF { t.Errorf("Got error: %s; expected: %s", err, io.EOF) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
EndElement{Name{"", "foo"}}, }, want: `<foo></foo>`, }, { desc: "directive", toks: []Token{ Directive("foo"), }, want: `<!foo>`, }} func TestClose(t *testing.T) { for _, tt := range closeTests { tt := tt t.Run(tt.desc, func(t *testing.T) { var out strings.Builder enc := NewEncoder(&out) for j, tok := range tt.toks {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
status = file->Tell(&position); EXPECT_EQ(status.code(), Code::OK); EXPECT_EQ(position, test_data.size()); } TEST_P(ModularFileSystemTest, TestClose) { const std::string filename = GetURIForPath("a_file"); std::unique_ptr<WritableFile> file; Status status = env_->NewWritableFile(filename, &file); if (!status.ok())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 27 20:25:58 UTC 2022 - 71K bytes - Viewed (0)