Implement the Files flag and add some tests

This commit is contained in:
2025-11-20 14:18:20 +01:00
parent ade7c4d2b2
commit b35697d227
3 changed files with 188 additions and 39 deletions

View File

@@ -36,7 +36,7 @@ func TestHomeDirectoryPatternExpansion(t *testing.T) {
// Test the pattern with ~/ that should match the file
pattern := "~/synclib_test/testhome.csv"
links, err := ExpandPattern(pattern, testDir, "target.csv")
links, err := ExpandPattern(pattern, testDir, "target.csv", false)
// This should work but currently fails due to the bug
assert.NoError(t, err)
@@ -46,4 +46,4 @@ func TestHomeDirectoryPatternExpansion(t *testing.T) {
assert.Contains(t, links[0].Source, "testhome.csv")
assert.Equal(t, "target.csv", links[0].Target)
}
}
}