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

Function TestLoadRepoConfig_HelpCommandTrue

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

Source from the content-addressed store, hash-verified

74}
75
76func TestLoadRepoConfig_HelpCommandTrue(t *testing.T) {
77 dir := t.TempDir()
78 writeAWJSON(t, dir, `{"help_command": true}`)
79
80 cfg, err := LoadRepoConfig(dir)
81 require.NoError(t, err, "valid aw.json should load without error")
82 require.NotNil(t, cfg.HelpCommand, "help_command should be set")
83 assert.True(t, *cfg.HelpCommand, "help_command should be true when explicitly set")
84 assert.True(t, cfg.IsHelpCommandEnabled(), "help command should be enabled when help_command is true")
85}
86
87func TestLoadRepoConfig_MaintenanceEmptyObject(t *testing.T) {
88 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