summaryrefslogtreecommitdiff
path: root/internal/resource/dir/dir_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/dir/dir_test.go')
-rw-r--r--internal/resource/dir/dir_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/resource/dir/dir_test.go b/internal/resource/dir/dir_test.go
index c7ec92e..21af8e1 100644
--- a/internal/resource/dir/dir_test.go
+++ b/internal/resource/dir/dir_test.go
@@ -78,7 +78,7 @@ func TestPresentAbsentNonEmptyDirWithoutPruneFails(t *testing.T) {
t.Fatal(err)
}
- Present(path, IsAbsent())
+ Present(path, IsAbsent)
if err := resource.Apply(); err == nil {
t.Error("expected Apply to fail when removing non-empty directory without prune")
}
@@ -95,7 +95,7 @@ func TestPresentAbsentPruneDirectoryRecursive(t *testing.T) {
t.Fatal(err)
}
- Present(path, IsAbsent(), WithPrune())
+ Present(path, IsAbsent, WithPrune)
if err := resource.Apply(); err != nil {
t.Fatalf("Apply failed: %v", err)
}
@@ -116,7 +116,7 @@ func TestAbsentPruneDirectoryRecursive(t *testing.T) {
t.Fatal(err)
}
- Absent(path, WithPrune())
+ Absent(path, WithPrune)
if err := resource.Apply(); err != nil {
t.Fatalf("Apply failed: %v", err)
}
@@ -168,7 +168,7 @@ func TestPresentDirectoryWithSource(t *testing.T) {
t.Fatal(err)
}
- Present(dst, WithSource(src), WithPrune())
+ Present(dst, WithSource(src), WithPrune)
if err := resource.Apply(); err != nil {
t.Fatalf("Apply failed: %v", err)
}
@@ -284,7 +284,7 @@ func TestSourceCopyWithPruneKeepsTemplatedFile(t *testing.T) {
// Now apply with prune
resource.ResetRepository()
- Present(dst, WithSource(src), WithPrune())
+ Present(dst, WithSource(src), WithPrune)
if err := resource.Apply(); err != nil {
t.Fatalf("Apply failed: %v", err)
}