Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testCancel (0.14 sec)

  1. internal/ringbuffer/ring_buffer_test.go

    		rb.CloseWithError(errors.New("test error"))
    		<-done
    	}
    	testCancel(func() {
    		rb.Write([]byte{sz + 5: 1})
    	})
    	testCancel(func() {
    		rb.Write(make([]byte, sz))
    		rb.WriteByte(0)
    	})
    	testCancel(func() {
    		rb.Read([]byte{10: 1})
    	})
    	testCancel(func() {
    		rb.ReadByte()
    	})
    	testCancel(func() {
    		rb.Write(make([]byte, sz))
    		rb.Flush()
    	})
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        Exception e = new IllegalArgumentException("foo not found");
        MockCallback callback = new MockCallback(e);
        addCallback(f, callback, directExecutor());
        f.setException(e);
      }
    
      public void testCancel() {
        SettableFuture<String> f = SettableFuture.create();
        FutureCallback<String> callback =
            new FutureCallback<String>() {
              private final Object monitor = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testCancel() throws Exception {
        assertTrue(future.cancel(true));
        tester.testCancelledFuture();
      }
    
      /** Tests the initial state of the future. */
      public void testCreate() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testCancel() throws Exception {
        assertTrue(future.cancel(true));
        tester.testCancelledFuture();
      }
    
      /** Tests the initial state of the future. */
      public void testCreate() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top