MCPcopy Create free account
hub / github.com/github/gh-aw / TestGetActionDependencies

Function TestGetActionDependencies

pkg/cli/actions_build_command_test.go:245–269  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

243}
244
245func 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
271func TestActionsBuildCommand_EmptyActionsDir(t *testing.T) {
272 // Create a temporary directory with empty actions/

Callers

nothing calls this directly

Calls 2

getActionDependenciesFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected