summaryrefslogtreecommitdiffstats
path: root/parser/pageparser/pageparser_intro_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/pageparser/pageparser_intro_test.go')
-rw-r--r--parser/pageparser/pageparser_intro_test.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/parser/pageparser/pageparser_intro_test.go b/parser/pageparser/pageparser_intro_test.go
index 901b216c8..3e5bac872 100644
--- a/parser/pageparser/pageparser_intro_test.go
+++ b/parser/pageparser/pageparser_intro_test.go
@@ -88,8 +88,8 @@ func TestFrontMatter(t *testing.T) {
}
}
-func collect(input []byte, skipFrontMatter bool, stateStart stateFunc) (items []Item) {
- l := newPageLexer(input, 0, stateStart)
+func collectWithConfig(input []byte, skipFrontMatter bool, stateStart stateFunc, cfg Config) (items []Item) {
+ l := newPageLexer(input, stateStart, cfg)
l.run()
t := l.newIterator()
@@ -103,6 +103,13 @@ func collect(input []byte, skipFrontMatter bool, stateStart stateFunc) (items []
return
}
+func collect(input []byte, skipFrontMatter bool, stateStart stateFunc) (items []Item) {
+ var cfg Config
+
+ return collectWithConfig(input, skipFrontMatter, stateStart, cfg)
+
+}
+
// no positional checking, for now ...
func equal(i1, i2 []Item) bool {
if len(i1) != len(i2) {