- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for wantSum (0.22 sec)
-
cmd/kubeadm/app/phases/addons/dns/dns_test.go
printManifest bool } tests := []struct { name string args args wantOut string wantErr bool }{ { name: "cfg is empty", args: args{ cfg: &kubeadmapi.ClusterConfiguration{}, client: newMockClientForTest(t, 2, 1, "", "", ""), printManifest: false, }, wantOut: "", wantErr: true, }, { name: "cfg is valid and not print Manifest",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 41.7K bytes - Viewed (0) -
pkg/apis/core/v1/conversion_test.go
out *core.Pod } tests := []struct { name string args args wantErr bool wantOut *core.Pod }{ { args: args{ in: &v1.Pod{ Spec: v1.PodSpec{ TerminationGracePeriodSeconds: utilpointer.Int64(-1), }, }, out: &core.Pod{}, }, wantOut: &core.Pod{ Spec: core.PodSpec{ TerminationGracePeriodSeconds: utilpointer.Int64(1),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 05:34:15 UTC 2023 - 21.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld_test.go
out, err := cmd.CombinedOutput() if err != nil { t.Fatal(err) } got := strings.TrimSpace(string(out)) if got != tt.wantOut { t.Errorf("got %q; want %q", got, tt.wantOut) } }) } } func TestRISCVTrampolines(t *testing.T) { testenv.MustHaveGoBuild(t) t.Parallel() tmpDir := t.TempDir()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
cases := map[string]struct { pods []indexPhase wantRm []indexPhase wantLeft []indexPhase completions int32 }{ "all unique": { pods: []indexPhase{ {noIndex, v1.PodPending}, {"2", v1.PodPending}, {"5", v1.PodRunning}, {"6", v1.PodRunning}, }, wantRm: []indexPhase{ {noIndex, v1.PodPending}, {"6", v1.PodRunning}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
operator/pkg/tpath/struct_test.go
return } gotYAML := util.ToYAML(GotOut) diff := util.YAMLDiff(gotYAML, tt.wantYAML) if diff != "" { t.Errorf("GetFromStructPath(%s): YAML of gotOut:\n%s\n, YAML of wantOut:\n%s\n, diff:\n%s\n", tt.desc, gotYAML, tt.wantYAML, diff) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.7K bytes - Viewed (0) -
src/net/url/url_test.go
} } func TestInvalidUserPassword(t *testing.T) { _, err := Parse("http://user^:passwo^******@****.***/") if got, wantsub := fmt.Sprint(err), "net/url: invalid userinfo"; !strings.Contains(got, wantsub) { t.Errorf("error = %q; want substring %q", got, wantsub) } } func TestRejectControlCharacters(t *testing.T) { tests := []string{ "http://foo.com/?foo\nbar", "http\r://foo.com/",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:52:38 UTC 2024 - 52.1K bytes - Viewed (0) -
src/os/os_test.go
io.WriteString(f, data) f.Seek(0, 0) b := make([]byte, 5) n, err := f.ReadAt(b, -10) const wantsub = "negative offset" if !strings.Contains(fmt.Sprint(err), wantsub) || n != 0 { t.Errorf("ReadAt(-10) = %v, %v; want 0, ...%q...", n, err, wantsub) } } func TestWriteAt(t *testing.T) { t.Parallel() f := newFile("TestWriteAt", t) defer Remove(f.Name())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
cmd/metacache-entries_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 31.6K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/arith_test.go
// testArithRshConst ensures that "const >> const" right shifts correctly perform // sign extension on the lhs constant func testArithRshConst(t *testing.T) { wantu := uint64(0x4000000000000000) if got := arithRshuConst_ssa(); got != wantu { t.Errorf("arithRshuConst failed, wanted %d got %d", wantu, got) } wants := int64(-0x4000000000000000) if got := arithRshConst_ssa(); got != wants {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:30:59 UTC 2023 - 43.5K bytes - Viewed (0) -
src/go/types/api_test.go
if sel.Indirect() { direct = "->" } got := [2]string{ sel.String(), fmt.Sprintf("%s%v", direct, sel.Index()), } want := wantOut[syntax] if want != got { t.Errorf("%s: got %q; want %q", syntax, got, want) } delete(wantOut, syntax) // We must explicitly assert properties of the // Signature's receiver since it doesn't participate // in Identical() or String().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0)