- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 3,295 for GOT (0.04 sec)
-
src/sync/atomic/value_test.go
case tt.err == nil && err != nil: t.Errorf("should not panic, got %v", err) case tt.err != nil && err == nil: t.Errorf("should panic %v, got <nil>", tt.err) } }() if got := v.Swap(tt.new); got != tt.want { t.Errorf("got %v, want %v", got, tt.want) } if got := v.Load(); got != tt.new { t.Errorf("got %v, want %v", got, tt.new) } }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
pkg/envoy/proxy_test.go
} if !reflect.DeepEqual(got, want) { t.Errorf("envoyArgs() => got:\n%v,\nwant:\n%v", got, want) } } func TestReadToJSON(t *testing.T) { got, err := readBootstrapToJSON("testdata/bootstrap.yaml") if err != nil { t.Errorf("unexpected error: %v", err) } want := `{"key":"value"}` if got != want { t.Errorf("readBootstrapToJSON() => got:\n%v,\nwant:\n%v", got, want) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 11:45:51 UTC 2024 - 3.2K bytes - Viewed (0) -
operator/pkg/version/version_test.go
} for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { got := Version{} err := yaml.Unmarshal([]byte(tt.yamlStr), &got) if gotErr, wantErr := errToString(err), tt.wantErr; gotErr != wantErr { t.Fatalf("yaml.Unmarshal(%s): got error: %s, want error: %s", tt.desc, gotErr, wantErr) } if tt.wantErr == "" { assert.Equal(t, got, tt.want) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 6.1K bytes - Viewed (0) -
src/math/big/decimal_test.go
d.init(x, 0) d.roundDown(test.n) if got := d.String(); got != test.down { t.Errorf("roundDown(%d, %d) = %s; want %s", test.x, test.n, got, test.down) } d.init(x, 0) d.round(test.n) if got := d.String(); got != test.even { t.Errorf("round(%d, %d) = %s; want %s", test.x, test.n, got, test.even) } d.init(x, 0) d.roundUp(test.n) if got := d.String(); got != test.up {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 05:54:35 UTC 2016 - 3.3K bytes - Viewed (0) -
test/typeparam/struct.go
func main() { s1 := S1{Eint{2}, "foo"} if got, want := s1.E.v, 2; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } s2 := S2{Eint{3}, Ebool{true}, "foo"} if got, want := s2.Eint.v, 3; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } var s3 S3 s3.E = &Eint{4} if got, want := s3.E.v, 4; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 16:29:58 UTC 2024 - 801 bytes - Viewed (0) -
cmd/data-usage_test.go
t.Run(w.path, func(t *testing.T) { e := got.find(w.path) if w.path == "flat" { f := got.flatten(*got.root()) e = &f } if w.isNil { if e != nil { t.Error("want nil, got", e) } return } if e == nil { t.Fatal("got nil result") return } if e.Size != int64(w.size) { t.Error("got size", e.Size, "want", w.size) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Mar 27 15:10:40 UTC 2024 - 14.1K bytes - Viewed (0) -
src/go/constant/value_test.go
func TestString(t *testing.T) { for _, test := range stringTests { x := val(test.input) if got := x.String(); got != test.short { t.Errorf("%s: got %q; want %q as short string", test.input, got, test.short) } if got := x.ExactString(); got != test.exact { t.Errorf("%s: got %q; want %q as exact string", test.input, got, test.exact) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
src/context/afterfunc_test.go
_, cancel2 := context.WithCancel(ctx0) if got, want := len(ctx0.afterFuncs), 2; got != want { t.Errorf("after WithCancel(ctx0): ctx0 has %v afterFuncs, want %v", got, want) } cancel1() cancel2() if got, want := len(ctx0.afterFuncs), 0; got != want { t.Errorf("after canceling WithCancel(ctx0): ctx0 has %v afterFuncs, want %v", got, want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:58:52 UTC 2023 - 3.4K bytes - Viewed (0) -
src/html/template/css_test.go
`pqrstuvwxyz\7b|\7d~` + "\u007f" + "\u00A0\u0100\u2028\u2029\ufeff\U0001D11E") got := cssEscaper(input) if got != want { t.Errorf("encode: want\n\t%q\nbut got\n\t%q", want, got) } got = string(decodeCSS([]byte(got))) if input != got { t.Errorf("decode: want\n\t%q\nbut got\n\t%q", input, got) } } func TestCSSValueFilter(t *testing.T) { tests := []struct { css, want string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 19:38:18 UTC 2023 - 6.9K bytes - Viewed (0) -
cmd/bucket-lifecycle_test.go
fi.TransitionStatus = lifecycle.TransitionComplete fi.Metadata = tc.meta if got := fi.IsRemote(); got != tc.remote { t.Fatalf("Test %d.a: expected %v got %v", i+1, tc.remote, got) } oi := fi.ToObjectInfo("bucket", "object", false) if got := oi.IsRemote(); got != tc.remote { t.Fatalf("Test %d.b: expected %v got %v", i+1, tc.remote, got) } } // Reset transition status; An object that's not transitioned is not remote.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0)