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

Function TestLoadRepoConfig_FileNotFound

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

Source from the content-addressed store, hash-verified

12)
13
14func TestLoadRepoConfig_FileNotFound(t *testing.T) {
15 dir := t.TempDir()
16 cfg, err := LoadRepoConfig(dir)
17 require.NoError(t, err, "missing aw.json should return default config without error")
18 assert.False(t, cfg.MaintenanceDisabled, "maintenance should be enabled by default")
19 assert.Nil(t, cfg.Maintenance, "maintenance config should be nil when file is absent")
20}
21
22func TestLoadRepoConfig_MaintenanceFalse(t *testing.T) {
23 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

LoadRepoConfigFunction · 0.85

Tested by

no test coverage detected