()
| 31 | |
| 32 | |
| 33 | def test_sequential_executor() -> None: |
| 34 | func = CounterFunction() |
| 35 | executor = utils.SequentialExecutor() |
| 36 | job1 = executor.submit(func, [3]) |
| 37 | np.testing.assert_equal(job1.done(), True) |
| 38 | np.testing.assert_equal(job1.result(), 4) |
| 39 | np.testing.assert_equal(func.count, 1) |
| 40 | job2 = executor.submit(func, [3]) |
| 41 | np.testing.assert_equal(job2.done(), True) |
| 42 | np.testing.assert_equal(func.count, 1) # not computed just yet |
| 43 | job2.result() |
| 44 | np.testing.assert_equal(func.count, 2) |
| 45 | |
| 46 | |
| 47 | def test_get_nash() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…