- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for wantSeen (0.12 sec)
-
src/cmd/go/internal/fsys/fsys_test.go
return filepath.SkipDir } return nil }) wantSeen := []string{"dir", "dir/dontskip", "dir/dontskip/file.go", "dir/dontskip/skip", "dir/skip"} if len(seen) != len(wantSeen) { t.Errorf("paths seen in walk: got %v entries; want %v entries", len(seen), len(wantSeen)) } for i := 0; i < len(seen) && i < len(wantSeen); i++ { if seen[i] != wantSeen[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
src/cmd/internal/src/xpos_test.go
if len(tab.baseList) != 1+len(tab.indexMap) { // indexMap omits nil t.Errorf("table length discrepancy: %d != 1+%d", len(tab.baseList), len(tab.indexMap)) } const wantLen = 4 if len(tab.baseList) != wantLen { t.Errorf("got table length %d; want %d", len(tab.baseList), wantLen) } if got := tab.XPos(NoPos); got != NoXPos { t.Errorf("XPos(NoPos): got %v; want %v", got, NoXPos) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 2.7K bytes - Viewed (0) -
test/arenas/smoke.go
// that *i crashes for some reason. Still, why not check it. log.Fatalf("bad i value: got %d, want %d", *i, iValue) } const wantLen = 125 const wantCap = 1912 sl := arena.MakeSlice[*int](a, wantLen, wantCap) if len(sl) != wantLen { log.Fatalf("bad arena slice length: got %d, want %d", len(sl), wantLen) } if cap(sl) != wantCap { log.Fatalf("bad arena slice capacity: got %d, want %d", cap(sl), wantCap) } sl = sl[:cap(sl)]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 16 17:08:43 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt
if m == nil { continue } containsVal = true s, err := strconv.Unquote(string(m[1])) if err != nil { panic(err) } if len(s) != wantLen { fmt.Fprintf(os.Stderr, "expect length %d, got %d (%q)\n", wantLen, len(s), line) os.Exit(1) } } if !containsVal { fmt.Fprintln(os.Stderr, "corpus file contained no values") os.Exit(1) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:32 UTC 2023 - 5.5K bytes - Viewed (0) -
src/net/http/clientserver_test.go
} res.Body.Close() wantFoo := "bar" wantLen := int64(-1) if method == "OPTIONS" { wantFoo = "" wantLen = 0 } if res.StatusCode != 200 { t.Errorf("status code = %v; want %d", res.Status, 200) } if res.ContentLength != wantLen { t.Errorf("content length = %v; want %d", res.ContentLength, wantLen) } if got := res.Header.Get("foo"); got != wantFoo {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
internal/hash/checksum.go
cs = "" } if typ.Is(ChecksumIncludesMultipart) { wantLen := int(t) * length if len(b) < wantLen { break } // Read part checksum if part > 0 && uint64(part) <= t { offset := (part - 1) * length partCs := b[offset:] cs = base64.StdEncoding.EncodeToString(partCs[:length]) } b = b[wantLen:] } } else if part > 1 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 08 16:18:34 UTC 2024 - 12.6K bytes - Viewed (0) -
src/database/sql/sql_test.go
} reset := func() { s = connRequestSet{} } t.Run("add-delete", func(t *testing.T) { reset() wantLen(0) dh := s.Add(nil) wantLen(1) if !s.Delete(dh) { t.Fatal("failed to delete") } wantLen(0) if s.Delete(dh) { t.Error("delete worked twice") } wantLen(0) }) t.Run("take-before-delete", func(t *testing.T) { reset() ch1 := make(chan connRequest)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
src/net/http/fs_test.go
req, _ := NewRequest("GET", "http://foo.localhost"+tt.path, nil) FileServer(fileServerCleanPathDir{&log}).ServeHTTP(rr, req) if !reflect.DeepEqual(log, tt.wantOpen) { t.Logf("For %s: Opens = %q; want %q", tt.path, log, tt.wantOpen) } if rr.Code != tt.wantCode { t.Logf("For %s: Response code = %d; want %d", tt.path, rr.Code, tt.wantCode) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
src/time/time.go
if version != timeBinaryVersionV1 && version != timeBinaryVersionV2 { return errors.New("Time.UnmarshalBinary: unsupported version") } wantLen := /*version*/ 1 + /*sec*/ 8 + /*nsec*/ 4 + /*zone offset*/ 2 if version == timeBinaryVersionV2 { wantLen++ } if len(buf) != wantLen { return errors.New("Time.UnmarshalBinary: invalid length") } buf = buf[1:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
q.Activate(logger, map[string]*v1.Pod{"test_pod": tt.qPodInfoToActivate.PodInfo.Pod}) // Check the result after activation by the length of activeQ if wantLen := len(tt.want); q.activeQ.Len() != wantLen { t.Errorf("length compare: want %v, got %v", wantLen, q.activeQ.Len()) } // Check if the specific pod exists in activeQ for _, want := range tt.want {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)