(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestGetCommandToSlashCommandCodemod(t *testing.T) { |
| 13 | codemod := getCommandToSlashCommandCodemod() |
| 14 | |
| 15 | assert.Equal(t, "command-to-slash-command-migration", codemod.ID) |
| 16 | assert.Equal(t, "Migrate on.command to on.slash_command", codemod.Name) |
| 17 | assert.NotEmpty(t, codemod.Description) |
| 18 | assert.Equal(t, "0.2.0", codemod.IntroducedIn) |
| 19 | require.NotNil(t, codemod.Apply) |
| 20 | } |
| 21 | |
| 22 | func TestSlashCommandCodemod_BasicMigration(t *testing.T) { |
| 23 | codemod := getCommandToSlashCommandCodemod() |
nothing calls this directly
no test coverage detected