(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestLoadRepoConfig_HelpCommandFalse(t *testing.T) { |
| 66 | dir := t.TempDir() |
| 67 | writeAWJSON(t, dir, `{"help_command": false}`) |
| 68 | |
| 69 | cfg, err := LoadRepoConfig(dir) |
| 70 | require.NoError(t, err, "valid aw.json should load without error") |
| 71 | require.NotNil(t, cfg.HelpCommand, "help_command should be set") |
| 72 | assert.False(t, *cfg.HelpCommand, "help_command should be false when explicitly set") |
| 73 | assert.False(t, cfg.IsHelpCommandEnabled(), "help command should be disabled when help_command is false") |
| 74 | } |
| 75 | |
| 76 | func TestLoadRepoConfig_HelpCommandTrue(t *testing.T) { |
| 77 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected