(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func 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 | |
| 22 | func TestLoadRepoConfig_MaintenanceFalse(t *testing.T) { |
| 23 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected