MCPcopy Create free account
hub / github.com/github/gh-aw / TestGetCommandToSlashCommandCodemod

Function TestGetCommandToSlashCommandCodemod

pkg/cli/codemod_slash_command_test.go:12–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
22func TestSlashCommandCodemod_BasicMigration(t *testing.T) {
23 codemod := getCommandToSlashCommandCodemod()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected