(b *testing.B)
| 132 | } |
| 133 | |
| 134 | func BenchmarkUnifySubs(b *testing.B) { |
| 135 | cases := unifySubsCases() |
| 136 | b.ReportAllocs() |
| 137 | b.ResetTimer() |
| 138 | for i := 0; i < b.N; i++ { |
| 139 | for _, tc := range cases { |
| 140 | exists := func(f string) bool { |
| 141 | return slices.Contains(tc.exists, f) |
| 142 | } |
| 143 | unifySubs(tc.in, exists) |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | func TestSetPlatformData(t *testing.T) { |
| 149 | // Checks that setPlatformData runs without error when applied to a temp |
nothing calls this directly
no test coverage detected