MCPcopy Create free account
hub / github.com/exercism/cli / TestMigrationStatusString

Function TestMigrationStatusString

workspace/exercise_test.go:70–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

68}
69
70func 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
77func TestMigrateLegacyMetadataFileWithoutLegacy(t *testing.T) {
78 ws, err := os.MkdirTemp("", "fake-workspace")

Callers

nothing calls this directly

Calls 2

MigrationStatusTypeAlias · 0.85
StringMethod · 0.45

Tested by

no test coverage detected