(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestMigrationStatusString(t *testing.T) { |
| 71 | assert.Equal(t, "\nMigrated metadata\n", MigrationStatusMigrated.String()) |
| 72 | assert.Equal(t, "\nRemoved legacy metadata\n", MigrationStatusRemoved.String()) |
| 73 | assert.Equal(t, "", MigrationStatusNoop.String()) |
| 74 | assert.Equal(t, "", MigrationStatus(-1).String()) |
| 75 | } |
| 76 | |
| 77 | func TestMigrateLegacyMetadataFileWithoutLegacy(t *testing.T) { |
| 78 | ws, err := os.MkdirTemp("", "fake-workspace") |
nothing calls this directly
no test coverage detected