Repository navigation
Commit 875be34
fix: [#838] address coderabbit nit — Matomo test name + pin "exact-name, not prefix" contract
Reviewer flagged that the test title "strips Piwik/Matomo tracking
params (pk_*, piwik_*)" overstates the contract — TRACKING_PARAMS does
exact-name matching, NOT pk_* / piwik_* prefix stripping. The title
was documenting behavior that isn't guaranteed.
Renamed to enumerate the named params we DO strip and added two
counter-tests verifying that pk_unknown / piwik_unknown ARE preserved.
This pins the "exact-name, not prefix" contract so a future refactor
can't silently flip to prefix-stripping without breaking these.
Restraint rationale documented inline: prefix-stripping `pk_` risks
false positives on functional params from unrelated services that
happen to start with the same two letters.
29/29 tests pass; marker check clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent c37af0e commit 875be34
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
205 | 220 | | |
206 | 221 | | |
207 | 222 | | |
| |||
0 commit comments