(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestNewFromDir(t *testing.T) { |
| 62 | dir := filepath.Join("something", "another", "whatever", "the-track", "the-exercise") |
| 63 | |
| 64 | exercise := NewExerciseFromDir(dir) |
| 65 | assert.Equal(t, filepath.Join("something", "another", "whatever"), exercise.Root) |
| 66 | assert.Equal(t, "the-track", exercise.Track) |
| 67 | assert.Equal(t, "the-exercise", exercise.Slug) |
| 68 | } |
| 69 | |
| 70 | func TestMigrationStatusString(t *testing.T) { |
| 71 | assert.Equal(t, "\nMigrated metadata\n", MigrationStatusMigrated.String()) |
nothing calls this directly
no test coverage detected