(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func TestGetActionDependencies(t *testing.T) { |
| 246 | tests := []struct { |
| 247 | name string |
| 248 | actionName string |
| 249 | minDeps int |
| 250 | }{ |
| 251 | { |
| 252 | name: "setup action", |
| 253 | actionName: "setup", |
| 254 | minDeps: 0, // setup has special handling |
| 255 | }, |
| 256 | { |
| 257 | name: "unknown action", |
| 258 | actionName: "unknown-action", |
| 259 | minDeps: 0, // Unknown actions should return empty or default dependencies |
| 260 | }, |
| 261 | } |
| 262 | |
| 263 | for _, tt := range tests { |
| 264 | t.Run(tt.name, func(t *testing.T) { |
| 265 | deps := getActionDependencies(tt.actionName) |
| 266 | assert.GreaterOrEqual(t, len(deps), tt.minDeps, "Should return at least minimum dependencies") |
| 267 | }) |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | func TestActionsBuildCommand_EmptyActionsDir(t *testing.T) { |
| 272 | // Create a temporary directory with empty actions/ |
nothing calls this directly
no test coverage detected