Watch
0
0
Fork
You've already forked hyperhive
0

review classifier: presentational layout math needs no test

tests-with-behaviour now counts a small UI helper that only maps a value to a
position, size or colour that CSS draws as thin glue, like component wiring.
This commit is contained in:
argus 2026-11-18 22:14:19 +01:00
commit db036f076f

View file

@ -49,7 +49,10 @@ classifications:
match, and neither does a bug fix with no regression test. Thin glue
needs no test of its own: UI component wiring, JSX or markup, a
routing table, registering an event listener, re-exporting, or
calling a function that is already tested. A diff whose changed files
calling a function that is already tested. So does presentational
layout math: a small helper in UI code that only maps a value to a
position, size or colour that CSS then draws, such as the place of a
slider's zone edge. A diff whose changed files
are all test code (a fixture under `nix/module-eval/`,
`nix/checks.nix`, a crate's `tests/` directory, or Rust inside
`#[cfg(test)]` or a `#[test]` function) changes no behaviour: the