- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 408 for Fatalf (0.24 sec)
-
tests/update_has_one_test.go
func TestUpdateHasOne(t *testing.T) { user := *GetUser("update-has-one", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Account = Account{Number: "account-has-one-association"} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 User DB.Preload("Account").Find(&user2, "id = ?", user.ID)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
cmd/os-readdir_test.go
if err != nil { os.RemoveAll(dir) t.Fatalf("Unable to create a file, %s", err) } } entries, err := readDirN(dir, testCase.n) if err != nil { os.RemoveAll(dir) t.Fatalf("Unable to read entries, %s", err) } if len(entries) != testCase.expectedNum { os.RemoveAll(dir) t.Fatalf("Test %d: unexpected number of entries, waiting for %d, but found %d",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 7.5K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
if err == nil { tt.Fatalf("wanted error including %q but none", c.wantErrStr) } else if !strings.Contains(err.Error(), c.wantErrStr) { tt.Fatalf("wanted error including %q but %v", c.wantErrStr, err) } } else if c.wantErrStr == "" && err != nil { tt.Fatalf("wanted non-error but got %q", err) } else if diff := cmp.Diff(got, c.want); diff != "" { tt.Fatalf(" got %v\nwant %v\ndiff %v", got, c.want, diff)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 20.7K bytes - Viewed (0) -
internal/event/rules_test.go
result := testCase.rules.Clone() if !reflect.DeepEqual(result, testCase.rules) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.rules, result) } result.Add(NewPattern(testCase.prefix, ""), testCase.targetID) if reflect.DeepEqual(result, testCase.rules) { t.Fatalf("test %v: result: expected: not equal, got: equal", i+1) } } } func TestRulesUnion(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 8.8K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
// s := bytes.NewBuffer([]byte("COUNT(Id)")) lex, err := sqlLexer.Lex(s) if err != nil { t.Fatal(err) } tokens, err := lexer.ConsumeAll(lex) if err != nil { t.Fatal(err) } // for i, t := range tokens { // fmt.Printf("%d: %#v\n", i, t) // } if len(tokens) != 7 { t.Fatalf("Expected 7 got %d", len(tokens)) } } func TestSelectWhere(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/auth/credentials_test.go
if result != testCase.expectedResult { t.Fatalf("test %v: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } func TestGetNewCredentials(t *testing.T) { cred, err := GetNewCredentials() if err != nil { t.Fatalf("Failed to get a new credential") } if !cred.IsValid() { t.Fatalf("Failed to get new valid credential") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 01 21:09:42 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/config/identity/openid/jwks_test.go
t.Fatal("Unmarshal: ", err) } else if len(jk.Keys) != 3 { t.Fatalf("Expected 3 keys, got %d", len(jk.Keys)) } var kids []string for ii, jks := range jk.Keys { _, err := jks.DecodePublicKey() if err != nil { t.Fatalf("Failed to decode key %d: %v", ii, err) } kids = append(kids, jks.Kid) } if len(kids) != 3 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 9.8K bytes - Viewed (0) -
internal/event/name_test.go
data, err := xml.Marshal(testCase.name) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(data, testCase.expectedData) { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data)) } } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 7.4K bytes - Viewed (0) -
internal/event/config_test.go
err := xml.Unmarshal(testCase.data, result) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(result, testCase.expectedResult) { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 29K bytes - Viewed (0) -
tests/customize_field_test.go
if result.FieldAllowUpdate != "" || result.FieldReadonly != "" || result.FieldIgnore != "" || result.FieldAllowSave3 != "" { t.Fatalf("invalid result: %#v", result) } if int(result.AutoUnixCreateTime) != int(result.AutoUnixUpdateTime) || result.AutoUnixCreateTime == 0 { t.Fatalf("invalid create/update unix time: %#v", result) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Sep 11 09:33:31 UTC 2020 - 6.9K bytes - Viewed (0)