- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 1,199 for expectGet (0.2 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
getResponse(newRequest("/foo")) }.also { expected -> when (expected) { is SSLHandshakeException -> { // Allow conscrypt to fail in different ways if (!platform.isConscrypt()) { assertThat(expected.cause!!).isInstanceOf<CertificateException>() } } is TlsFatalAlert -> {} else -> throw expected } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
clientListener.assertOpen() val reason = repeat('X', 124) assertFailsWith<IllegalArgumentException> { webSocket.close(1000, reason) }.also { expected -> assertThat(expected.message).isEqualTo("reason.size() > 123: $reason") } webSocket.close(1000, null) serverListener.assertClosing(1000, "") server.close(1000, null)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
fail("Expected NoSuchElementException."); } catch (NoSuchElementException expected) { } } private <T> void assertPermutationsCount(int expected, Collection<List<T>> permutationSet) { assertEquals(expected, permutationSet.size()); Iterator<List<T>> permutations = permutationSet.iterator(); for (int i = 0; i < expected; i++) { assertTrue(permutations.hasNext()); permutations.next(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 19.7K bytes - Viewed (0) -
cmd/api-errors.go
}, ErrParseExpectedDatePart: { Code: "ParseExpectedDatePart", Description: "Did not find the expected date part in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, }, ErrParseExpectedKeyword: { Code: "ParseExpectedKeyword", Description: "Did not find the expected keyword in the SQL expression.", HTTPStatusCode: http.StatusBadRequest, }, ErrParseExpectedTokenType: {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 01 22:13:18 UTC 2024 - 92.1K bytes - Viewed (1) -
guava-tests/test/com/google/common/reflect/TypeParameterTest.java
public <T> void testCaptureTypeParameter() throws Exception { TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable; TypeVariable<?> expected = TypeParameterTest.class.getDeclaredMethod("testCaptureTypeParameter") .getTypeParameters()[0]; assertEquals(expected, variable); } public void testConcreteTypeRejected() { assertThrows(IllegalArgumentException.class, () -> new TypeParameter<String>() {});
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 1.9K bytes - Viewed (0) -
internal/jwt/parser.go
if string(key) == "accessKey" { if dataType != jsonparser.String { return errors.New("accessKey: Expected string") } c.AccessKey, err = jsonparser.ParseString(value) return err } if string(key) == "aud" { if dataType != jsonparser.String { return errors.New("aud: Expected string") } c.Audience, err = jsonparser.ParseString(value) return err } case 'e':
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 14.1K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
} if len(events) > 0 { slices.SortFunc(events, func(a, b Event) int { // Prefer Expiration over Transition for both current // and noncurrent versions when, // - now is past the expected time to action // - expected time to action is the same for both actions if now.After(a.Due) && now.After(b.Due) || a.Due.Equal(b.Due) { switch a.Action { case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
internal/deadlineconn/deadlineconn_test.go
_, terr = deadlineconn.Read(b) if terr != nil { t.Errorf("failed to read from client. %v", terr) return } received := string(b) if received != "message one\n" { t.Errorf(`server: expected: "message one\n", got: %v`, received) return } // Wait for more than read timeout to simulate processing. time.Sleep(3 * time.Second) _, terr = deadlineconn.Read(b) if terr != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Nov 05 18:09:21 UTC 2022 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
public class MultisetSetCountConditionallyTester<E> extends AbstractMultisetSetCountTester<E> { @Override void setCountCheckReturnValue(E element, int count) { assertTrue( "setCount() with the correct expected present count should return true", setCount(element, count)); } @Override void setCountNoCheckReturnValue(E element, int count) { setCount(element, count); } @CanIgnoreReturnValue
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/data-usage-cache_test.go
for _, sz := range test.sizes { h.add(sz) } got := h.toMap() exp := test.want // what is in exp is in got for k := range exp { if exp[k] != got[k] { t.Fatalf("interval %s: Expected %d values but got %d values\n", k, exp[k], got[k]) } } // what is absent in exp is absent in got too for k := range got { if _, ok := exp[k]; !ok && got[k] > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jan 13 07:51:08 UTC 2024 - 2.6K bytes - Viewed (0)