(t *testing.T)
| 119 | } |
| 120 | |
| 121 | func TestUnifySubs(t *testing.T) { |
| 122 | cases := unifySubsCases() |
| 123 | for i, tc := range cases { |
| 124 | exists := func(f string) bool { |
| 125 | return slices.Contains(tc.exists, f) |
| 126 | } |
| 127 | out := unifySubs(tc.in, exists) |
| 128 | if diff, equal := messagediff.PrettyDiff(tc.out, out); !equal { |
| 129 | t.Errorf("Case %d failed; got %v, expected %v, diff:\n%s", i, out, tc.out, diff) |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | func BenchmarkUnifySubs(b *testing.B) { |
| 135 | cases := unifySubsCases() |
nothing calls this directly
no test coverage detected