Commit f9ea0a6
committed
test(tools): fail when a guard rejects a value it must render inert
cubic found the fourth instance of the same pattern: the renders-inert cases
caught any throw and returned, so none of the assertions ran. The suite proved
only that values which build stay inert — a guard that over-tightened and
rejected one it should have encoded passed silently. The surrounding-whitespace
case for ordinary ids had the same hole.
A throw is now a failure unless the parameter is named in strictlyValidated,
which is exactly Supabase table and functionName: validateDatabaseIdentifier
and validateFunctionName predate these guards and legitimately refuse values
the shared guards only render inert. Measured rather than assumed — those ten
pairs are the only ones that reject any MUST_NOT_RESHAPE value.
Verified non-vacuous by over-tightening strictUrlPathSegment to reject '#':
three box_sign cases fail where they previously passed.1 parent 796eefe commit f9ea0a6
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
428 | 442 | | |
429 | 443 | | |
430 | 444 | | |
| |||
435 | 449 | | |
436 | 450 | | |
437 | 451 | | |
| 452 | + | |
438 | 453 | | |
439 | 454 | | |
440 | 455 | | |
| |||
473 | 488 | | |
474 | 489 | | |
475 | 490 | | |
476 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
477 | 503 | | |
478 | 504 | | |
479 | 505 | | |
| |||
561 | 587 | | |
562 | 588 | | |
563 | 589 | | |
564 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
565 | 595 | | |
566 | 596 | | |
567 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| |||
0 commit comments