- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 639 for testParse (0.07 sec)
-
internal/amztime/parse_test.go
}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.timeStr, func(t *testing.T) { gott, goterr := Parse(testCase.timeStr) if !errors.Is(goterr, testCase.expectedErr) { t.Errorf("expected %v, got %v", testCase.expectedErr, goterr) } if !gott.Equal(testCase.expectedTime) { t.Errorf("expected %v, got %v", testCase.expectedTime, gott) } }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 07 14:24:54 UTC 2022 - 1.6K bytes - Viewed (0) -
internal/arn/arn_test.go
return } if !reflect.DeepEqual(got, tt.want) { t.Errorf("NewIAMRoleARN() got = %v, want %v", got, tt.want) } }) } } func TestParse(t *testing.T) { type args struct { arnStr string } tests := []struct { name string args args wantArn ARN wantErr bool }{ { name: "valid ARN must succeed",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 5.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("robotsTxtHelper", RobotsTxtHelper.class); robotsTxtHelper = container.getComponent("robotsTxtHelper"); } public void testParse() { RobotsTxt robotsTxt; final InputStream in = RobotsTxtHelperTest.class.getResourceAsStream("robots.txt"); try { robotsTxt = robotsTxtHelper.parse(in); } finally {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 5.9K bytes - Viewed (0) -
internal/etag/etag_test.go
{String: "90402c78d2dccddee1e9e86222ce2c6361675f3529d26000ae2e900ff216b3cb59e130e092d8a2981e776f4d0bd60941-1", ShouldFail: true}, // 11 } func TestParse(t *testing.T) { for i, test := range parseTests { etag, err := Parse(test.String) if err == nil && test.ShouldFail { t.Fatalf("Test %d: parse should have failed but succeeded", i) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 12.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeTest.kt
protected open fun assertInvalid( string: String, exceptionMessage: String?, ) { assertNull(string.toMediaTypeOrNull(), exceptionMessage) } @Test fun testParse() { val mediaType = parse("text/plain;boundary=foo;charset=utf-8") assertEquals("text", mediaType.type) assertEquals("plain", mediaType.subtype) assertEquals("UTF-8", mediaType.charsetName())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.5K bytes - Viewed (0) -
cmd/api-resources_test.go
} if startAfter != testCase.startAfter { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.startAfter, startAfter) } if delimiter != testCase.delimiter { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.delimiter, delimiter) } if fetchOwner != testCase.fetchOwner { t.Errorf("Test %d: Expected %t, got %t", i+1, testCase.fetchOwner, fetchOwner) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 7.1K bytes - Viewed (0) -
internal/config/lambda/event/targetid_test.go
for i, testCase := range testCases { targetID := &TargetID{} err := targetID.UnmarshalJSON(testCase.data) 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 *targetID != *testCase.expectedTargetID {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.5K bytes - Viewed (0) -
internal/event/targetid_test.go
for i, testCase := range testCases { targetID := &TargetID{} err := targetID.UnmarshalJSON(testCase.data) 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 *targetID != *testCase.expectedTargetID {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
internal/auth/credentials_test.go
{1574812326.000, false}, {time.Duration(3) * time.Minute, false}, } for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { _, err := ExpToInt64(testCase.exp) if err != nil && !testCase.expectedFailure { t.Errorf("Expected success but got failure %s", err) } if err == nil && testCase.expectedFailure { t.Error("Expected failure but got success") } }) } }
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/bool-flag_test.go
{[]byte(`"OFF"`), BoolFlag(false), false}, } for _, testCase := range testCases { var flag BoolFlag err := (&flag).UnmarshalJSON(testCase.data) if !testCase.expectedErr && err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } if testCase.expectedErr && err == nil { t.Fatalf("error: expected error, got = <nil>") } if err == nil && testCase.expectedResult != flag {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0)