mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
test(guards): let the file-size floor follow the ratchet down
The splits on this line took the files over 800 lines from 115 to 96, under the liveness floor of 100. The floor guards the matcher, so it moves to 80, below the real count.
This commit is contained in:
1 parent
6555acefe1
commit
453bf6c6f3
1 file changed
+4
-1
@@ -92,7 +92,10 @@ describe("source size ratchet", () => {
|
||||
it("reads the whole tree", () => {
|
||||
expect(m.files).toBeGreaterThan(3000);
|
||||
expect(m.functionsSeen).toBeGreaterThan(20_000);
|
||||
requireFloor("files over the cap", Object.keys(m.fileLines), 100);
|
||||
// The floor follows the ratchet down: 115 files sat over the cap before
|
||||
// the large-component splits, 96 after. It guards the matcher, so it sits
|
||||
// under the real count, not at it.
|
||||
requireFloor("files over the cap", Object.keys(m.fileLines), 80);
|
||||
requireFloor("functions over the cap", Object.keys(m.functionLines), 300);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user