Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,199 for expectGet (0.07 sec)

  1. internal/deadlineconn/deadlineconn_test.go

    1. _, terr = deadlineconn.Read(b)
    2. if terr != nil {
    3. t.Errorf("failed to read from client. %v", terr)
    4. return
    5. }
    6. received := string(b)
    7. if received != "message one\n" {
    8. t.Errorf(`server: expected: "message one\n", got: %v`, received)
    9. return
    10. }
    11.  
    12. // Wait for more than read timeout to simulate processing.
    13. time.Sleep(3 * time.Second)
    14.  
    15. _, terr = deadlineconn.Read(b)
    16. 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)
  2. src/cmd/api/api_test.go

    1. defer func() {
    2. if x := recover(); x != nil {
    3. t.Errorf("expected no panic; recovered %v", x)
    4. }
    5. }()
    6.  
    7. testenv.MustHaveGoBuild(t)
    8.  
    9. for _, context := range contexts {
    10. w := NewWalker(context, "testdata/src/issue64958")
    11. pkg, err := w.importFrom("p", "", 0)
    12. if err != nil {
    13. t.Errorf("expected no error importing; got %T", err)
    14. }
    15. w.export(pkg)
    16. }
    17. }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jan 04 17:31:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/parse.go

    1. }
    2. return scanner.EOF
    3. }
    4.  
    5. func (p *Parser) more() bool {
    6. return p.inputPos < len(p.input)
    7. }
    8.  
    9. // get verifies that the next item has the expected type and returns it.
    10. func (p *Parser) get(expected lex.ScanToken) lex.Token {
    11. p.expect(expected, expected.String())
    12. return p.next()
    13. }
    14.  
    15. // expectOperandEnd verifies that the parsing state is properly at the end of an operand.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

    1. else -> readToken()
    2. } ?: return // Expected a value.
    3.  
    4. val replaced = parameters.put(peek, parameterValue)
    5. peek = null
    6. if (replaced != null) return // Unexpected duplicate parameter.
    7. if (!skipCommasAndWhitespace() && !exhausted()) return // Expected ',' or EOF.
    8. }
    9. result.add(Challenge(schemeName, parameters))
    10. }
    11. }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java

    1. throw new AssertionError(
    2. "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
    3. }
    4. if (userPassedSupplier) {
    5. throw new AssertionError(
    6. "expected to throw "
    7. + expectedThrowable.getSimpleName()
    8. + " but returned result: "
    9. + result);
    10. } else {
    11. throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

    1. .invoke(future, badFuture);
    2. CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
    3. assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
    4. assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
    5. }
    6.  
    7. private Future<?> newFutureInstance() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/ReflectionFreeAssertThrows.java

    1. throw new AssertionError(
    2. "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
    3. }
    4. if (userPassedSupplier) {
    5. throw new AssertionError(
    6. "expected to throw "
    7. + expectedThrowable.getSimpleName()
    8. + " but returned result: "
    9. + result);
    10. } else {
    11. throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

    1. assertNull(k);
    2. assertEquals(getValueForNullKey(), v);
    3. return v3();
    4. }));
    5.  
    6. Entry<K, V>[] expected = createArrayWithNullKey();
    7. expected[getNullLocation()] = entry(null, v3());
    8. expectContents(expected);
    9. }
    10.  
    11. @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
    12. public void testComputeIfPresent_nullKeySupportedAbsent() {
    13. assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

    1. .invoke(future, badFuture);
    2. CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
    3. assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
    4. assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
    5. }
    6.  
    7. private Future<?> newFutureInstance() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/BaseEncodingTest.java

    1. try {
    2. encoding.decode(cannotDecode);
    3. fail("Expected IllegalArgumentException");
    4. } catch (IllegalArgumentException expected) {
    5. if (expectedMessage != null) {
    6. assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage);
    7. }
    8. }
    9. }
    10. },
    11. DECODE_CHECKED {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top