- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 411 for Got (0.06 sec)
-
cmd/api-resources_test.go
t.Errorf("Test %d: Expected error code:%d, got %d", i+1, testCase.errCode, errCode) } if prefix != testCase.prefix { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.prefix, prefix) } if token != testCase.token { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.token, token) } if startAfter != testCase.startAfter { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.startAfter, startAfter) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 7.1K bytes - Viewed (0) -
cmd/signature-v2_test.go
t.Errorf("(%d) failed to create http.Request, got %v", i, err) } if testCase.expected != ErrNone { // Should be set since we are simulating a http server. req.RequestURI = req.URL.RequestURI() // Check if it matches! errCode := doesPresignV2SignatureMatch(req) if errCode != testCase.expected { t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(errCode)) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 14 10:08:40 UTC 2022 - 8K bytes - Viewed (0) -
utils/utils_test.go
{"FALSE", false}, {"\u0046alse", false}, } for _, test := range checkTruthTests { t.Run(test.v, func(t *testing.T) { if out := CheckTruth(test.v); out != test.out { t.Errorf("CheckTruth(%s) want: %t, got: %t", test.v, test.out, out) } }) } } func TestToStringKey(t *testing.T) { cases := []struct { values []interface{} key string }{ {[]interface{}{"a"}, "a"},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
internal/config/lambda/event/targetidset_test.go
result := testCase.set.Clone() if !reflect.DeepEqual(result, testCase.set) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.set, result) } result.add(testCase.targetIDToAdd) if reflect.DeepEqual(result, testCase.set) { t.Fatalf("test %v: result: expected: not equal, got: equal", i+1) } } } func TestTargetIDSetUnion(t *testing.T) { testCases := []struct { set TargetIDSet
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.9K bytes - Viewed (0) -
internal/config/identity/openid/jwks_test.go
} 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 { t.Fatalf("Failed to find the expected number of kids: 3, got %d", len(kids)) } } // A.1 - Example public keys
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 9.8K bytes - Viewed (0) -
tests/delete_test.go
t.Errorf("should raise record not found error, but got error %v", err) } var result3 UserWithDelete if err := DB.Table("deleted_users").Unscoped().First(&result3, user.ID).Error; err != nil { t.Fatalf("failed to find record, got error %v", err) } if err := DB.Table("deleted_users").Unscoped().Delete(&result).Error; err != nil { t.Errorf("failed to delete user with unscoped, got error %v", err) } var result4 UserWithDelete
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Oct 10 07:03:34 UTC 2023 - 9.4K bytes - Viewed (0) -
cmd/httprange_test.go
rs, err := parseRequestRangeSpec(urs) if err == nil { t.Errorf("Case %d: Did not get an expected error - got %v", i, rs) } if isErrInvalidRange(err) { t.Errorf("Case %d: Got invalid range error instead of a parse error", i) } if rs != nil { t.Errorf("Case %d: Got non-nil rs though err != nil: %v", i, rs) } } invalidRangeSpecs := []string{ "bytes=5-3", "bytes=10-10",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun May 05 16:56:21 UTC 2024 - 3.7K bytes - Viewed (0) -
cmd/endpoint_test.go
} switch { case test.expectedErr == nil: if err != nil { t.Errorf("error: expected = <nil>, got = %v", err) } case err == nil: t.Errorf("error: expected = %v, got = <nil>", test.expectedErr) case test.expectedErr.Error() != err.Error(): t.Errorf("error: expected = %v, got = %v", test.expectedErr, err) } if err == nil { if (test.expectedEndpoint.URL == nil) != (endpoint.URL == nil) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jan 13 07:53:03 UTC 2024 - 18.9K bytes - Viewed (0) -
schema/constraint_test.go
Name3 string `gorm:"check:,name <> 'jinzhu'"` } func TestParseCheck(t *testing.T) { user, err := schema.Parse(&UserCheck{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user check, got error %v", err) } results := map[string]schema.CheckConstraint{ "name_checker": { Name: "name_checker", Constraint: "name <> 'jinzhu'", }, "chk_user_checks_name2": {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sun Feb 04 07:49:19 UTC 2024 - 2.2K bytes - Viewed (0) -
internal/bucket/replication/rule_test.go
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)