MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / test_timer_flush_stop

Function test_timer_flush_stop

python/test/unit/common/test_timer.py:37–48  ·  view source on GitHub ↗

Test stop/flush.

()

Source from the content-addressed store, hash-verified

35
36
37def test_timer_flush_stop():
38 """Test stop/flush."""
39 t = common.Timer()
40 t.start()
41 with pytest.raises(RuntimeError):
42 t.flush()
43 t.stop()
44 t.resume()
45 with pytest.raises(RuntimeError):
46 t.flush()
47 t.stop()
48 t.flush()
49
50
51def test_context_manager_named():

Callers

nothing calls this directly

Calls 5

startMethod · 0.95
flushMethod · 0.95
stopMethod · 0.95
resumeMethod · 0.95
TimerMethod · 0.80

Tested by

no test coverage detected