- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for wantOut (0.11 sec)
-
src/cmd/go/internal/work/shell_test.go
t.Skipf("skipping %#q: contains no arguments", b) } var buf strings.Builder for _, arg := range args { buf.WriteString(arg) buf.WriteString("\n") } wantOut := buf.String() if strings.Count(wantOut, "\n") != len(args)+bytes.Count(b, []byte("\n")) { // One of the newlines in b was treated as a delimiter and not part of an // argument. Our bash test script would interpret that as a syntax error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 15:30:05 UTC 2023 - 4.5K bytes - Viewed (0) -
pilot/pkg/status/distribution/state_test.go
_ = json.Unmarshal(b, &x) type args struct { in any } tests := []struct { name string args args wantOut *v1alpha1.IstioStatus wantErr bool }{ { name: "Nondestructive cast", args: args{in: statusStillPropagating}, wantOut: statusStillPropagating, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 22 22:47:47 UTC 2022 - 4.3K 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) -
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/http/cgi/child_test.go
name string body string wantCT string }{ { name: "no body", wantCT: "text/plain; charset=utf-8", }, { name: "html", body: "<html><head><title>test page</title></head><body>This is a body</body></html>", wantCT: "text/html; charset=utf-8", }, { name: "text", body: strings.Repeat("gopher", 86), wantCT: "text/plain; charset=utf-8", }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 14 15:42:03 UTC 2020 - 5.2K bytes - Viewed (0) -
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) -
src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go
} return } sum := modfetch.Sum(ctx, test.m) if sum != test.wantSum { if *updateTestData { t.Logf("%s: updating content sum to %s", test.m, sum) test.wantSum = sum needUpdate = true } else { t.Errorf("%s: got content sum %s; want sum %s", test.m, sum, test.wantSum) return } } h := sha256.New() f, err := os.Open(zipPath)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 19:33:59 UTC 2023 - 6.2K bytes - Viewed (0) -
src/net/http/cgi/integration_test.go
name string body string wantCT string }{ { name: "no body", wantCT: "text/plain; charset=utf-8", }, { name: "html", body: "<html><head><title>test page</title></head><body>This is a body</body></html>", wantCT: "text/html; charset=utf-8", }, { name: "text", body: strings.Repeat("gopher", 86), wantCT: "text/plain; charset=utf-8", }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 18:42:44 UTC 2023 - 5.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) -
src/mime/multipart/writer_test.go
} else if b := params["boundary"]; b != tt.b { t.Errorf("unexpected boundary parameter %q; want %q", b, tt.b) } w.Close() wantSub := "\r\n--" + tt.b + "--\r\n" if got := b.String(); !strings.Contains(got, wantSub) { t.Errorf("expected %q in output. got: %q", wantSub, got) } } } } func TestWriterBoundaryGoroutines(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 4.1K bytes - Viewed (0)