diff options
Diffstat (limited to 'parser_test.go')
| -rw-r--r-- | parser_test.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/parser_test.go b/parser_test.go index 3811a1a..078c825 100644 --- a/parser_test.go +++ b/parser_test.go @@ -29,7 +29,9 @@ func TestGenerateID(t *testing.T) { desc: `With idprefix`, doc: &Document{ Attributes: DocumentAttribute{ - docAttrIDPrefix: `123`, + Entry: map[string]string{ + docAttrIDPrefix: `123`, + }, }, }, inputExp: map[string]string{ @@ -40,7 +42,9 @@ func TestGenerateID(t *testing.T) { desc: `With empty idseparator`, doc: &Document{ Attributes: DocumentAttribute{ - docAttrIDSeparator: ``, + Entry: map[string]string{ + docAttrIDSeparator: ``, + }, }, }, inputExp: map[string]string{ @@ -51,7 +55,9 @@ func TestGenerateID(t *testing.T) { desc: `With idseparator`, doc: &Document{ Attributes: DocumentAttribute{ - docAttrIDSeparator: `-`, + Entry: map[string]string{ + docAttrIDSeparator: `-`, + }, }, }, inputExp: map[string]string{ @@ -62,8 +68,10 @@ func TestGenerateID(t *testing.T) { desc: `With idprefix and idseparator`, doc: &Document{ Attributes: DocumentAttribute{ - docAttrIDPrefix: `id_`, - docAttrIDSeparator: `-`, + Entry: map[string]string{ + docAttrIDPrefix: `id_`, + docAttrIDSeparator: `-`, + }, }, }, inputExp: map[string]string{ |
