(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestVersionUnique(t *testing.T) { |
| 23 | files, err := getSortedVersionedFiles() |
| 24 | require.NoError(t, err) |
| 25 | versions := make(map[string]struct{}) |
| 26 | for _, file := range files { |
| 27 | if file.version == nil { |
| 28 | continue |
| 29 | } |
| 30 | if _, ok := versions[file.version.String()]; ok { |
| 31 | require.Fail(t, "duplicate version %s", file.version.String()) |
| 32 | } |
| 33 | versions[file.version.String()] = struct{}{} |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func TestMigration3_17_15_DedupeReadOnlyDataSources(t *testing.T) { |
| 38 | ctx := context.Background() |
nothing calls this directly
no test coverage detected