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

Function TestLoadRepoConfig_MaintenanceFalse

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

Source from the content-addressed store, hash-verified

20}
21
22func TestLoadRepoConfig_MaintenanceFalse(t *testing.T) {
23 dir := t.TempDir()
24 writeAWJSON(t, dir, `{"maintenance": false}`)
25
26 cfg, err := LoadRepoConfig(dir)
27 require.NoError(t, err, "valid aw.json should load without error")
28 assert.True(t, cfg.MaintenanceDisabled, "maintenance should be disabled")
29 assert.Nil(t, cfg.Maintenance, "maintenance config should be nil when disabled")
30}
31
32func TestLoadRepoConfig_MaintenanceWithStringRunsOn(t *testing.T) {
33 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

writeAWJSONFunction · 0.85
LoadRepoConfigFunction · 0.85

Tested by

no test coverage detected