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

Function TestLoadRepoConfig_HelpCommandFalse

pkg/workflow/repo_config_test.go:65–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestLoadRepoConfig_HelpCommandFalse(t *testing.T) {
66 dir := t.TempDir()
67 writeAWJSON(t, dir, `{"help_command": false}`)
68
69 cfg, err := LoadRepoConfig(dir)
70 require.NoError(t, err, "valid aw.json should load without error")
71 require.NotNil(t, cfg.HelpCommand, "help_command should be set")
72 assert.False(t, *cfg.HelpCommand, "help_command should be false when explicitly set")
73 assert.False(t, cfg.IsHelpCommandEnabled(), "help command should be disabled when help_command is false")
74}
75
76func TestLoadRepoConfig_HelpCommandTrue(t *testing.T) {
77 dir := t.TempDir()

Callers

nothing calls this directly

Calls 3

writeAWJSONFunction · 0.85
LoadRepoConfigFunction · 0.85
IsHelpCommandEnabledMethod · 0.80

Tested by

no test coverage detected