@@ -23,7 +23,7 @@ func TestDecodeOptions_nil(t *testing.T) {
23
23
24
24
func TestDecodeOptions_wrongType (t * testing.T ) {
25
25
_ , err := DecodeOptions (map [string ]interface {}{
26
- "ignorePaths" : "/random/path" ,
26
+ "indexing. ignorePaths" : "/random/path" ,
27
27
})
28
28
if err == nil {
29
29
t .Fatal ("expected decoding of wrong type to result in error" )
@@ -32,7 +32,7 @@ func TestDecodeOptions_wrongType(t *testing.T) {
32
32
33
33
func TestDecodeOptions_success (t * testing.T ) {
34
34
out , err := DecodeOptions (map [string ]interface {}{
35
- "ignorePaths" : []string {"/random/path" },
35
+ "indexing. ignorePaths" : []string {"/random/path" },
36
36
})
37
37
if err != nil {
38
38
t .Fatal (err )
@@ -55,7 +55,7 @@ func TestValidate_IgnoreDirectoryNames_error(t *testing.T) {
55
55
56
56
for _ , table := range tables {
57
57
out , err := DecodeOptions (map [string ]interface {}{
58
- "ignoreDirectoryNames" : []string {table .input },
58
+ "indexing. ignoreDirectoryNames" : []string {table .input },
59
59
})
60
60
if err != nil {
61
61
t .Fatal (err )
@@ -69,7 +69,7 @@ func TestValidate_IgnoreDirectoryNames_error(t *testing.T) {
69
69
}
70
70
func TestValidate_IgnoreDirectoryNames_success (t * testing.T ) {
71
71
out , err := DecodeOptions (map [string ]interface {}{
72
- "ignoreDirectoryNames" : []string {"directory" },
72
+ "indexing. ignoreDirectoryNames" : []string {"directory" },
73
73
})
74
74
if err != nil {
75
75
t .Fatal (err )
0 commit comments