From e8de91eee099486200bac79406f17c149d1fcb5d Mon Sep 17 00:00:00 2001 From: JP Appel Date: Fri, 13 Jun 2025 12:55:34 -0400 Subject: Add more flags to control document indexing Added support for the following * Ignore unpassable dates * Ignore parsing non-standard header keys * Ignore errors while parsing non-standard header keys --- pkg/index/index_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/index/index_test.go') diff --git a/pkg/index/index_test.go b/pkg/index/index_test.go index 4e55325..3f9b900 100644 --- a/pkg/index/index_test.go +++ b/pkg/index/index_test.go @@ -262,7 +262,8 @@ func TestIndex_ParseOne(t *testing.T) { path := tt.pathMaker(t) tt.want.Path = path - got, gotErr := ParseDoc(path) + // TODO: add ParseOpts as test param + got, gotErr := ParseDoc(path, ParseOpts{ParseMeta: true}) if !errors.Is(gotErr, tt.wantErr) { t.Errorf("Recieved unexpected error: want %v got %v", tt.wantErr, gotErr) -- cgit v1.2.3