(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestLoadRepoConfig_HelpCommandTrue(t *testing.T) { |
| 77 | dir := t.TempDir() |
| 78 | writeAWJSON(t, dir, `{"help_command": true}`) |
| 79 | |
| 80 | cfg, err := LoadRepoConfig(dir) |
| 81 | require.NoError(t, err, "valid aw.json should load without error") |
| 82 | require.NotNil(t, cfg.HelpCommand, "help_command should be set") |
| 83 | assert.True(t, *cfg.HelpCommand, "help_command should be true when explicitly set") |
| 84 | assert.True(t, cfg.IsHelpCommandEnabled(), "help command should be enabled when help_command is true") |
| 85 | } |
| 86 | |
| 87 | func TestLoadRepoConfig_MaintenanceEmptyObject(t *testing.T) { |
| 88 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected