WhatsApp/assert
69.1
Adequate · 15 November 2026
2k
lines of production code
Erlang
primary language
5
measurements over time
What this system is
Behavioural changes
Assertion errors now display intermediate expression values
The assertion library now captures and displays intermediate values (such as arithmetic results) in error messages, helping users debug complex expressions. The parse transform extracts these values for comparison and generic assertions, and the error formatting functions render them in a new 'Where:' section alongside variable bindings. Floats are formatted without scientific notation for readability, and duplicate intermediate entries are deduplicated. Additionally, the error info API now returns a list of error info tuples instead of a single tuple, and the diff module has been updated to support a tagged-union structure for stricter equality checks.
src · high confidence
Erlang/OTP 27 minimum requirement and API update for wa\_diff
The library now requires Erlang/OTP 27 as the minimum version, enforced via the rebar.config configuration. Additionally, the wa\_diff library's compute/2 function has been updated to return a tagged union ({eq, Value} or {diff, Left, Right}) instead of a map, providing stricter equality checks and a more explicit return structure for users performing structural diffs.
(repo-wide) · high confidence
Simplified error handling and enhanced assertion diagnostics
The assertion macros in \include/assert.hrl\ now use \erlang:error/3\ directly for raising failures, replacing the previous complex \case\ logic that attempted to attach extra error info via \wa\_diff:error\_info\. This simplifies the error-raising path and ensures consistent error reporting. Additionally, \?assertMatch\ and the new \?assertNotMatch\ macros now explicitly include the pattern in their error reports (as \{pattern, ...}\), improving debuggability when a match fails. The argument order contract is also documented: expected/pattern first, expression second.
include · high confidence
Test coverage
Expanded assertion macros and stricter diff output in test suites; Updated test fixtures for assertMatch error handling.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 69 → 69 (-0.2)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 75 → 74 (-1.6)
- Architecture 100 → 100 (+0.0)
- Maturity 59 → 59 (+0.0)
- Readiness 70 → 70 (+0.0)
- Security 100 → 100 (+0.0)
New (5)
- Edited copies of one member (3 members, 8+ corresponding lines) (src/wa_blame.erl)
- Edited copy of a member (10 corresponding lines) (src/wa_assert.erl)
- Edited copy of a member (11 corresponding lines) (src/wa_assert_parse_trans.erl)
- Edited copy of a member (13 corresponding lines) (src/wa_blame.erl)
- Edited copy of a member (6 corresponding lines) (src/wa_assert.erl)
Changes since last survey
- 1 commits — 1 feature/other, 0 fixes
By area
- test/wa_assert_SUITE.erl — 1 commit
Notable commits
- change: Add missing specs for assert helper tests
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
WhatsApp/assert was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 240b33e1c8475f2915e243fe5cd9822fce1898ba — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.