- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,188 for Expected (0.07 sec)
-
istioctl/pkg/tag/generate_test.go
testGenerateOption(t, true, func(t *testing.T, actual, expected []admitv1.MutatingWebhook) { assert.Equal(t, actual, expected) }) // Test generate option 'false', should modify webhooks testGenerateOption(t, false, func(t *testing.T, actual, expected []admitv1.MutatingWebhook) { if err := assert.Compare(actual, expected); err == nil { t.Errorf("expected diff between webhooks, got none") } })
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 12.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/route_test.go
desc string domains []string expected string }{ { desc: "test zero domain", domains: []string{}, expected: "", }, { desc: "test only one domain", domains: []string{"example.com"}, expected: "example.com", }, { desc: "test domains with port", domains: []string{"example.com", "example.com:8080"}, expected: "example.com", }, {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 2.8K bytes - Viewed (0) -
internal/store/queuestore_test.go
if len(keys) != 10 { t.Fatalf("List() Expected: 10, got %d", len(keys)) } // re-open store, err = setUpQueueStore(queueDir, 10) if err != nil { t.Fatal("Failed to create a queue store ", err) } keys = store.List() if len(keys) != 10 { t.Fatalf("List() Expected: 10, got %d", len(keys)) } if len(keys) != store.Len() { t.Fatalf("List() Expected: 10, got %d", len(keys)) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.7K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
{ absPaths := []string{"."} if err = checkCrossDevice(absPaths, mountsPath); err == nil { t.Fatal("Expected to fail for non absolute paths") } expectedErrMsg := fmt.Sprintf("Invalid argument, path (%s) is expected to be absolute", ".") if err.Error() != expectedErrMsg { t.Fatalf("Expected %s, got %s", expectedErrMsg, err) } } // Success case, where path doesn't have any mounts. {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt
}.also { expected -> assertThat(expected.message).isEqualTo("Code must be in range [1000,5000): 98724976") } } @Test fun closeReservedThrows() { assertFailsWith<IllegalArgumentException> { clientWriter.writeClose(1005, "Hello".encodeUtf8()) }.also { expected -> assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/auth/credentials_test.go
if err != nil { if testCase.expectedErr == nil { t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err) } if testCase.expectedErr.Error() != err.Error() { t.Fatalf("test %v: error: expected = %v, got = %v", i+1, testCase.expectedErr, err) } } else { if testCase.expectedErr != nil { t.Fatalf("test %v: error: expected = %v, got = <nil>", i+1, testCase.expectedErr) } if !cred.IsValid() {
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
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 { t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, flag) } } } // Test ParseBoolFlag()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
buildscripts/minio-upgrade.sh
if [ "${sum1_heal}" != "${sum1}" ]; then echo "mismatch expected ${sum1_heal}, got ${sum1}" exit 1 fi } verify_checksum_mc() { local expected expected=$(mc cat "$1" | sha256sum) local got got=$(mc cat "$2" | sha256sum) if [ "${expected}" != "${got}" ]; then echo "mismatch - expected ${expected}, got ${got}" exit 1 fi echo "matches - ${expected}, got ${got}" } add_alias() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 05:08:11 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/signature-v4-parser_test.go
return cred } // validates the credential fields against the expected credential. func validateCredentialfields(t *testing.T, testNum int, expectedCredentials credentialHeader, actualCredential credentialHeader) { if expectedCredentials.accessKey != actualCredential.accessKey { t.Errorf("Test %d: AccessKey mismatch: Expected \"%s\", got \"%s\"", testNum, expectedCredentials.accessKey, actualCredential.accessKey) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 27.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
try { decode(certificatePem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a private key") } try { decode(pkcs8Pem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a certificate") } try {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0)