aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/index/filters_test.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-05-04 18:23:44 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-05-04 18:23:44 -0400
commit3e533e65f1baf26355675cfe244fd4da64e8807c (patch)
tree3c8a752644ed4da1f0bf64ce3e049cac3775e646 /pkg/index/filters_test.go
parent37a96c43f6df141dc745f239891f4163b8870c02 (diff)
Add names to doc fitlers
Diffstat (limited to 'pkg/index/filters_test.go')
-rw-r--r--pkg/index/filters_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/index/filters_test.go b/pkg/index/filters_test.go
index 897a82f..f1226b9 100644
--- a/pkg/index/filters_test.go
+++ b/pkg/index/filters_test.go
@@ -78,7 +78,7 @@ func TestYamlHeaderFilter(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- got := YamlHeaderFilter(infoPath{}, tt.r)
+ got := yamlHeaderFilterFunc(infoPath{}, tt.r)
if got != tt.want {
t.Errorf("YamlHeaderFilter() = %v, want %v", got, tt.want)
}
@@ -100,9 +100,9 @@ func TestExtensionFilter(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- filter := NewExtensionFilter(tt.ext)
+ docFilter := NewExtensionFilter(tt.ext)
ip := tt.infoGen(t)
- got := filter(ip, nil)
+ got := docFilter.Filter(ip, nil)
if got != tt.want {
t.Errorf("ExtensionFilter() = %v, want %v", got, tt.want)