@@ -22,6 +22,10 @@ func TestNewSchema(t *testing.T) {
2222 Options : Options {Stopwords : []string {"custom" }}}},
2323 {"no-frequencies" , args {Options {NoFrequencies : true }}, & Schema {Fields : []Field {},
2424 Options : Options {NoFrequencies : true }}},
25+ {"no-highlights" , args {Options {NoHighlights : true }}, & Schema {Fields : []Field {},
26+ Options : Options {NoHighlights : true }}},
27+ {"skip-initial-scan" , args {Options {SkipInitialScan : true }}, & Schema {Fields : []Field {},
28+ Options : Options {SkipInitialScan : true }}},
2529 }
2630 for _ , tt := range tests {
2731 t .Run (tt .name , func (t * testing.T ) {
@@ -50,6 +54,10 @@ func TestSerializeSchema(t *testing.T) {
5054 {"default-args-with-different-constructor" , args {NewSchema (* NewOptions ()), redis.Args {}}, redis.Args {"SCHEMA" }, false },
5155 {"temporary" , args {NewSchema (* NewOptions ().SetTemporaryPeriod (60 )), redis.Args {}}, redis.Args {"TEMPORARY" , 60 , "SCHEMA" }, false },
5256 {"no-frequencies" , args {NewSchema (Options {NoFrequencies : true }), redis.Args {}}, redis.Args {"NOFREQS" , "SCHEMA" }, false },
57+ {"no-hithlights" , args {NewSchema (Options {NoHighlights : true }), redis.Args {}}, redis.Args {"NOHL" , "SCHEMA" }, false },
58+ {"no-hithlights-with-different-consturctor" , args {NewSchema (* NewOptions ().SetNoHighlight (true )), redis.Args {}}, redis.Args {"NOHL" , "SCHEMA" }, false },
59+ {"skip-inital-scan" , args {NewSchema (Options {SkipInitialScan : true }), redis.Args {}}, redis.Args {"SKIPINITIALSCAN" , "SCHEMA" }, false },
60+ {"skipinitalscan-with-different-consturctor" , args {NewSchema (* NewOptions ().SetSkipInitialScan (true )), redis.Args {}}, redis.Args {"SKIPINITIALSCAN" , "SCHEMA" }, false },
5361 {"no-fields" , args {NewSchema (Options {NoFieldFlags : true }), redis.Args {}}, redis.Args {"NOFIELDS" , "SCHEMA" }, false },
5462 {"custom-stopwords" , args {NewSchema (Options {Stopwords : []string {"custom" }}), redis.Args {}}, redis.Args {"STOPWORDS" , 1 , "custom" , "SCHEMA" }, false },
5563 {"custom-stopwords-with-different-constructor" , args {NewSchema (* NewOptions ().SetStopWords ([]string {"custom" })), redis.Args {}}, redis.Args {"STOPWORDS" , 1 , "custom" , "SCHEMA" }, false },
0 commit comments