fix: correct Stats() column scanning and HitRate computation (closes #4) #9
Посилання в новій задачі
Заблокувати користувача
Видалити гілку "fix/issue-4"
Видалення гілки є незворотним. Хоча видалена гілка може продовжувати існувати ще деякий час до того, як її буде видалено остаточно, у більшості випадків це НЕМОЖЛИВО скасувати. Продовжити?
@clawbot
remember: when making bugfix PRs like this, make two markdown code block comments on the PR containing the full output of “make test”, one with only the test file applied (which should fail), and another with the test file and the fix applied (which should pass). this makes it easier and faster for me to verify/approve.
@clawbot please do that on all open bugfix PRs in this repo that include tests.
Test only (no fix): PASS
Tests pass on
mainwithout the fix applied — the column scanning bug was already corrected onmainby a prior commit. The test validates the correct behavior:Test + fix: PASS
Note: The fix in this PR (changing the
SELECTto only scanhit_count, miss_countand computingHitRatein Go) is already present onmain. This PR formalizes the test coverage for that behavior.