- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 418 for fatalf (0.08 sec)
-
utils/utils_windows_test.go
}, { file: `C:/go/work/proj/my.gorm.io/gorm@v1.2.3/utils/utils.go`, want: `C:/go/work/proj/my.gorm.io/gorm@v1.2.3/`, }, } for _, c := range cases { s := sourceDir(c.file) if s != c.want { t.Fatalf("%s: expected %s, got %s", c.file, c.want, s) } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Nov 21 02:48:13 UTC 2022 - 715 bytes - Viewed (0) -
schema/callbacks_test.go
func (UserWithCallback) AfterCreate(*gorm.DB) error { return nil } func TestCallback(t *testing.T) { user, err := schema.Parse(&UserWithCallback{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user with callback, got error %v", err) } for _, str := range []string{"BeforeSave", "AfterCreate"} { if !reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 939 bytes - Viewed (0) -
internal/bucket/lifecycle/delmarker-expiration_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 1.6K bytes - Viewed (0) -
internal/bucket/replication/replication_test.go
if err != nil { t.Fatalf("Got unexpected error: %v", err) } if got := cfg.HasActiveRules(tc.prefix, false); got != tc.expectedNonRec { t.Fatalf("Expected result with recursive set to false: `%v`, got: `%v`", tc.expectedNonRec, got) } if got := cfg.HasActiveRules(tc.prefix, true); got != tc.expectedRec {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 32.5K bytes - Viewed (0) -
cmd/kms-handlers_test.go
t.Fatalf("want key created at %s, got %s", kms.StubCreatedAt, want.CreatedAt) } if test.wantKeyNames[i] != want.Name { t.Fatalf("want key name %s, got %s", test.wantKeyNames[i], want.Name) } } } // Check generic text in the response if test.wantResp != nil { for _, want := range test.wantResp { if !strings.Contains(rec.Body.String(), want) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
internal/bucket/replication/rule_test.go
t.Run(fmt.Sprintf("Test_%d", i+1), func(t *testing.T) { cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig))) if err != nil { t.Fatalf("Got unexpected error: %v", err) } if got := cfg.Rules[0].MetadataReplicate(tc.opts); got != tc.expectedResult { t.Fatalf("Expected result with recursive set to false: `%v`, got: `%v`", tc.expectedResult, got) } }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.6K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
// assume we will see the variable elsewhere. break } fatalf("malformed DWARF TagVariable entry") } if !strings.HasPrefix(name, "__cgo__") { break } typ, err := d.Type(typOff) if err != nil { fatalf("loading DWARF type: %s", err) } t, ok := typ.(*dwarf.PtrType) if !ok || t == nil { fatalf("internal error: %s has non-pointer type", name) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0) -
cmd/signature-v4-parser_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 27.4K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
_, err := f.Write([]byte{text[i]}) if err != nil { t.Fatal(err) } } // The "pre" output should all have been flushed already. if want, got := pre, out.String(); want != got { t.Errorf("filter should have already flushed %q, but flushed %q", want, got) } code, err := f.Finish() if err != nil { t.Fatal(err) } // Nothing more should have been written to out.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
cmd/endpoint_contrib_test.go
} for _, testCase := range ipv4TestCases { globalDomainIPs = nil updateDomainIPs(testCase.endPoints) if !testCase.expectedResult.Equals(globalDomainIPs) { t.Fatalf("error: expected = %s, got = %s", testCase.expectedResult, globalDomainIPs) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 30 15:50:39 UTC 2021 - 2.2K bytes - Viewed (0)