(self)
| 2338 | assert t.avg() == pytest.approx(0.27775) |
| 2339 | |
| 2340 | def test_single_sample(self): |
| 2341 | t = Timer() |
| 2342 | t.add(0.042) |
| 2343 | for p in [0.0, 0.5, 0.9, 1.0]: |
| 2344 | assert t.percentile(p) == pytest.approx(0.042) |
| 2345 | |
| 2346 | @pytest.mark.parametrize("p", [0.5, 0.9, 0.99]) |
| 2347 | def test_uniform_samples(self, p): |
nothing calls this directly
no test coverage detected