Commit b0f88c1
committed
Tighten RBS test suite: consolidate redundant variants, strengthen weak assertions
Six edits driven by a focused review of the PR's 44 added tests:
* Drop test_method_without_type_signature — pure default-state check that
was redundant with every other parser test using a sig-less sibling.
* Drop test_merge_rbs_signatures_unmatched_key — exercised built-in Hash
semantics rather than store behavior.
* Replace six per-type-form tests (union/optional/tuple/intersection/proc/
block) with one data-driven test that iterates the same six shapes. Same
coverage, ~50 fewer lines.
* Strengthen test_signature_to_html_multiline — previously asserted only
that a newline appeared somewhere; now asserts ordered structure of each
rendered line.
* Strengthen test_type_signature_invalid_still_stored_and_warns — asserts
the parser emits the documented "invalid RBS type signature" warning
in addition to keeping the malformed sig.
* Re-target test_merge_rbs_signatures_clears_signatures_removed_in_subsequent_merge
(formerly _replaces_previous_rbs_signature) to verify that a key
REMOVED in a later merge clears the signature — the actual property
clear_rbs_signatures was added for.
Net: 44 PR-added tests -> 37, same or stronger coverage.1 parent 91b8bfa commit b0f88c1
3 files changed
Lines changed: 48 additions & 89 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
2699 | | - | |
2700 | | - | |
2701 | | - | |
2702 | | - | |
2703 | | - | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
2710 | | - | |
2711 | | - | |
2712 | | - | |
2713 | 2699 | | |
2714 | 2700 | | |
2715 | 2701 | | |
| |||
2726 | 2712 | | |
2727 | 2713 | | |
2728 | 2714 | | |
2729 | | - | |
2730 | | - | |
2731 | | - | |
2732 | | - | |
2733 | | - | |
2734 | | - | |
2735 | | - | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
2736 | 2725 | | |
2737 | 2726 | | |
2738 | 2727 | | |
2739 | | - | |
| 2728 | + | |
2740 | 2729 | | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
2741 | 2733 | | |
2742 | 2734 | | |
2743 | 2735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
150 | 128 | | |
151 | 129 | | |
152 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| 1333 | + | |
1333 | 1334 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | 1450 | | |
0 commit comments