(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestGetActionDirectories_SortedOutput(t *testing.T) { |
| 132 | tmpDir := t.TempDir() |
| 133 | actionsDir := filepath.Join(tmpDir, "actions") |
| 134 | // Create directories in reverse-alphabetical order to verify sorting |
| 135 | for _, name := range []string{"zebra", "alpha", "middle"} { |
| 136 | require.NoError(t, os.MkdirAll(filepath.Join(actionsDir, name), 0755), "failed to create dir") |
| 137 | } |
| 138 | |
| 139 | dirs, err := getActionDirectories(actionsDir) |
| 140 | require.NoError(t, err, "should not error with valid actions directory") |
| 141 | assert.Equal(t, []string{"alpha", "middle", "zebra"}, dirs, "directories should be sorted alphabetically") |
| 142 | } |
| 143 | |
| 144 | func TestValidateActionYml(t *testing.T) { |
| 145 | tests := []struct { |
nothing calls this directly
no test coverage detected