(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestActionsCleanCommand_NoActionsDir(t *testing.T) { |
| 46 | // Create a temporary directory without actions/ |
| 47 | tmpDir := t.TempDir() |
| 48 | originalDir, err := os.Getwd() |
| 49 | require.NoError(t, err, "Failed to get current directory") |
| 50 | defer os.Chdir(originalDir) |
| 51 | |
| 52 | err = os.Chdir(tmpDir) |
| 53 | require.NoError(t, err, "Failed to change to temp directory") |
| 54 | |
| 55 | // Test with non-existent actions directory |
| 56 | err = ActionsCleanCommand() |
| 57 | assert.Error(t, err, "Should error when actions/ directory does not exist") |
| 58 | } |
| 59 | |
| 60 | func TestGetActionDirectories(t *testing.T) { |
| 61 | tests := []struct { |
nothing calls this directly
no test coverage detected