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

Function TestLoadRepoConfig_EmptyObject

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

Source from the content-addressed store, hash-verified

52}
53
54func TestLoadRepoConfig_EmptyObject(t *testing.T) {
55 dir := t.TempDir()
56 writeAWJSON(t, dir, `{}`)
57
58 cfg, err := LoadRepoConfig(dir)
59 require.NoError(t, err, "empty aw.json should load without error")
60 assert.False(t, cfg.MaintenanceDisabled, "maintenance should be enabled by default")
61 assert.Nil(t, cfg.Maintenance, "maintenance config should be nil when not specified")
62 assert.True(t, cfg.IsHelpCommandEnabled(), "help command should be enabled by default")
63}
64
65func TestLoadRepoConfig_HelpCommandFalse(t *testing.T) {
66 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