- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for expectedCert (0.16 sec)
-
cmd/net_test.go
switch { case testCase.expectedErr == nil: if err != nil { t.Errorf("error: expected = <nil>, got = %v", err) } case err == nil: t.Errorf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Errorf("error: expected = %v, got = %v", testCase.expectedErr, err) } }) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration_test.go
var expiration Expiration err := xml.Unmarshal([]byte(tc.inputXML), &expiration) if err != tc.expectedErr { t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err) } }) } validationTestCases := []struct { inputXML string expectedErr error }{ { // Expiration with a valid ISO 8601 date inputXML: `<Expiration> <Date>2019-04-20T00:00:00Z</Date>
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 4.1K bytes - Viewed (0) -
src/crypto/x509/parser_test.go
value: []byte{80}, expectedErr: "invalid NumericString", }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { out, err := parseASN1String(tc.tag, tc.value) if err != nil && err.Error() != tc.expectedErr { t.Fatalf("parseASN1String returned unexpected error: got %q, want %q", err, tc.expectedErr) } else if err == nil && tc.expectedErr != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 17:18:21 UTC 2022 - 2.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedNodeFixture.java
return outputs; } /** * Given some expectedText, assert that the output of this fixture contains it. * * @param expectedText the expected lines of expectedText * @return this fixture */ public GroupedNodeFixture assertOutputContains(String expectedText) { return assertOutputContains(ComparisonFailureFormat.LINEWISE, expectedText); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.1K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedWorkOutputFixture.java
} /** * Given some expectedText, assert that the output of this fixture contains it. * * @param expectedText the expected lines of expectedText * @return this fixture */ public GroupedWorkOutputFixture assertOutputContains(String expectedText) { return assertOutputContains(ComparisonFailureFormat.LINEWISE, expectedText); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.5K bytes - Viewed (0) -
security/pkg/pki/util/verify_cert_test.go
if err != nil { if len(tc.expectedErr) == 0 { t.Errorf("%s: Unexpected error: %v", id, err) } else if !strings.Contains(err.Error(), tc.expectedErr) { t.Errorf("%s: Unexpected error: %v VS (expected) %s", id, err, tc.expectedErr) } } else if len(tc.expectedErr) != 0 { t.Errorf("%s: Expected error %s but succeeded", id, tc.expectedErr) } } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 16 14:56:37 UTC 2022 - 6.5K bytes - Viewed (0) -
cmd/erasure-server-pool-decom_test.go
expectedUpdate bool expectedErr bool name string }{ { meta: meta, pools: pools, name: "Correct", expectedErr: false, expectedUpdate: false, }, { meta: meta, pools: newPools, name: "Correct-Update", expectedErr: false, expectedUpdate: true, }, {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 03 16:47:40 UTC 2023 - 4.8K bytes - Viewed (0) -
security/pkg/util/certutil_test.go
waitTime, err := cu.GetWaitTime(c.cert, c.now) if c.expectedErr != "" { if err == nil { t.Errorf("%s: no error is returned.", id) } if err.Error() != c.expectedErr { t.Errorf("%s: incorrect error message: %s VS %s", id, err.Error(), c.expectedErr) } } else { if err != nil { t.Errorf("%s: unexpected error: %v", id, err) } if int(waitTime.Seconds()) != c.expectedWaitTime {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/websocket/protocol_test.go
TokenAuth authenticator.Token ExpectedUserName string ExpectedOK bool ExpectedErr bool ExpectedProtocolHeaders []string }{ "no header": { ProtocolHeaders: nil, ExpectedUserName: "", ExpectedOK: false, ExpectedErr: false, ExpectedProtocolHeaders: nil, }, "empty header": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 21:43:39 UTC 2023 - 8.6K bytes - Viewed (0) -
security/pkg/util/jwtutil_test.go
expectedExp: time.Time{}, expectedErr: fmt.Errorf("failed to decode the JWT claims"), }, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { exp, err := GetExp(tc.jwt) if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil { t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0)