diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-06-13 12:55:34 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-06-13 12:55:34 -0400 |
| commit | e8de91eee099486200bac79406f17c149d1fcb5d (patch) | |
| tree | 4b163927f89ab6de662f4f7a50236aaa01e24978 /pkg/index/index_test.go | |
| parent | f85cfb2055551926ed4aeaa0550330d3e4da7569 (diff) | |
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
Diffstat (limited to 'pkg/index/index_test.go')
| -rw-r--r-- | pkg/index/index_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
