- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for wantSum (0.1 sec)
-
src/net/writev_test.go
case "windows": var wantCalls int wantSum = want.Len() if wantSum > 0 { wantCalls = 1 // windows will always do 1 syscall, unless sending empty buffer } if len(writeLog.log) != wantCalls { t.Errorf("write calls = %v; want %v", len(writeLog.log), wantCalls) } } if gotSum != wantSum { t.Errorf("writev call sum = %v; want %v", gotSum, wantSum) } return nil }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 5K bytes - Viewed (0) -
pkg/util/hash/hash_test.go
// limitations under the License. package hash import ( "testing" ) func TestFactory(t *testing.T) { testCases := []struct { name string str string wantSum []byte wantStr string wantUint64 uint64 wantLittleEndianUint64 uint64 }{ { name: "foo", str: "foo",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 20:24:14 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/proxy/proxy_test.go
name string printManifest bool wantOut string wantErr bool }{ { name: "do not print manifest", printManifest: false, wantOut: "[addons] Applied essential addon: kube-proxy\n", wantErr: false, }, { name: "print manifest", printManifest: true, wantOut: dedent.Dedent(`--- apiVersion: v1 kind: ServiceAccount
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 8.7K bytes - Viewed (0) -
src/cmd/compile/internal/test/mergelocals_test.go
vname := fields[1] frameoff := fields[3] varsAtFrameOffset[frameoff] = varsAtFrameOffset[frameoff] + 1 vars[vname] = frameoff } wantvnum := 8 gotvnum := len(vars) if wantvnum != gotvnum { t.Logf(string(out)) t.Fatalf("expected trace output on %d vars got %d\n", wantvnum, gotvnum) } // Expect at least one clump of at least 3. n3 := 0 got := []int{} for _, v := range varsAtFrameOffset {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:43:53 UTC 2024 - 4.7K bytes - Viewed (0) -
src/net/http/http_test.go
t.Parallel() goBin := testenv.GoToolPath(t) out, err := testenv.Command(t, goBin, "tool", "nm", goBin).CombinedOutput() if err != nil { t.Fatalf("go tool nm: %v: %s", err, out) } wantSym := map[string]bool{ // Verify these exist: (sanity checking this test) "net/http.(*Client).do": true, "net/http.(*Transport).RoundTrip": true, // Verify these don't exist:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 18:18:19 UTC 2023 - 5.2K bytes - Viewed (0)