Remove stale cleanup leftovers
This commit is contained in:
@@ -42,6 +42,13 @@ func StatePath(bundlePath string) (string, error) {
|
||||
return Join(bundlePath, StateFileName)
|
||||
}
|
||||
|
||||
func DisplayPath(path string) string {
|
||||
if path == "" {
|
||||
return "."
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
func ManagedBundleTargets(bundlePath string, managedOutputPaths []string) ([]string, error) {
|
||||
if err := ValidatePrefix(bundlePath); err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -67,6 +67,20 @@ func TestStatePath(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDisplayPath(t *testing.T) {
|
||||
tests := map[string]string{
|
||||
"": ".",
|
||||
"bundle": "bundle",
|
||||
}
|
||||
for path, want := range tests {
|
||||
t.Run(path, func(t *testing.T) {
|
||||
if got := DisplayPath(path); got != want {
|
||||
t.Fatalf("DisplayPath(%q) = %q, want %q", path, got, want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestManagedBundleTargets(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user