aboutsummaryrefslogtreecommitdiffhomepage
path: root/LICENSE
diff options
context:
space:
mode:
authorMatthew Gumport <[email protected]>2024-06-21 15:18:33 -0700
committerEdward Wang <[email protected]>2024-06-28 12:34:25 -0700
commit38a9d556b557a10f7815f50fca6a49de146ab5be (patch)
tree21d45e0595cc9aaab2e717a00cd577f78cd5eddb /LICENSE
parenta483902c46fc43736fc5a27a5048b292493536b3 (diff)
downloadpingora-38a9d556b557a10f7815f50fca6a49de146ab5be.tar.gz
pingora-38a9d556b557a10f7815f50fca6a49de146ab5be.zip
make seeded estimator and plumbing for tests
I started fidgeting with another one of the tests breaking because of the estimator not being deterministic, and then decided to do this another way. This adds `seeded` and `seeded_compact` constructors to the estimator which are used in tests to override the LFU. These are hidden behind `cfg(test)`. The `random_status` field of the UFO object is also overridden with the same seeds as used for the seeded LFU. These make the tests pass consistently without requiring further monkeying.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions