From 62ff4e782bc057d277a7c41fa35a665e2aeca045 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 6 Jul 2026 23:56:32 +0300 Subject: initial package management --- internal/resource/dir/dir_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/resource/dir/dir_test.go') 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) } -- cgit v1.2.3