From 3e533e65f1baf26355675cfe244fd4da64e8807c Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sun, 4 May 2025 18:23:44 -0400 Subject: Add names to doc fitlers --- pkg/index/index_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/index/index_test.go') diff --git a/pkg/index/index_test.go b/pkg/index/index_test.go index ed7e550..4bf49e3 100644 --- a/pkg/index/index_test.go +++ b/pkg/index/index_test.go @@ -262,9 +262,9 @@ func TestIndex_ParseOne(t *testing.T) { path := tt.pathMaker(t) tt.want.Path = path - got, gotErr := Index{}.ParseOne(path) + got, gotErr := ParseDoc(path) - if !errors.Is(gotErr,tt.wantErr) { + if !errors.Is(gotErr, tt.wantErr) { t.Errorf("Recieved unexpected error: want %v got %v", tt.wantErr, gotErr) } else if gotErr != nil { return -- cgit v1.2.3