(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func 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 | |
| 32 | func TestLoadRepoConfig_MaintenanceWithStringRunsOn(t *testing.T) { |
| 33 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected