- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestStop (0.06 sec)
-
guava-tests/test/com/google/common/base/StopwatchTest.java
stopwatch.start(); try { stopwatch.start(); fail(); } catch (IllegalStateException expected) { } assertTrue(stopwatch.isRunning()); } public void testStop() { stopwatch.start(); assertSame(stopwatch, stopwatch.stop()); assertFalse(stopwatch.isRunning()); } public void testStop_new() { try { stopwatch.stop(); fail();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 5.8K bytes - Viewed (0) -
src/os/signal/signal_test.go
} } } var ( sendUncaughtSighup = flag.Int("send_uncaught_sighup", 0, "send uncaught SIGHUP during TestStop") dieFromSighup = flag.Bool("die_from_sighup", false, "wait to die from uncaught SIGHUP") ) // Test that Stop cancels the channel's registrations. func TestStop(t *testing.T) { sigs := []syscall.Signal{ syscall.SIGWINCH, syscall.SIGHUP, syscall.SIGUSR1, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0)