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

Function TestActionsCleanCommand_NoActionsDir

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

Source from the content-addressed store, hash-verified

43}
44
45func 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
60func TestGetActionDirectories(t *testing.T) {
61 tests := []struct {

Callers

nothing calls this directly

Calls 2

ActionsCleanCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected