@@ -30,7 +30,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
3030 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
3131 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
3232 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
33- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
33+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
3434 },
3535 benchQuick : true ,
3636 },
@@ -57,12 +57,11 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
5757 expected : FieldConfigurations {
5858 "Nested" : & FieldConfiguration {StructFieldName : "Nested" , SubFields : FieldConfigurations {
5959 "Map" : & FieldConfiguration {StructFieldName : "Map" , SupportedOperations : []MatchOperator {MatchIn , MatchNotIn , MatchIsEmpty , MatchIsNotEmpty }, SubFields : FieldConfigurations {
60- FieldNameAny : & FieldConfiguration {StructFieldName : "" , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
61- }},
60+ FieldNameAny : & FieldConfiguration {StructFieldName : "" , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }}}},
6261 "MapOfStructs" : & FieldConfiguration {StructFieldName : "MapOfStructs" , SupportedOperations : []MatchOperator {MatchIsEmpty , MatchIsNotEmpty , MatchIn , MatchNotIn }, SubFields : FieldConfigurations {
6362 FieldNameAny : & FieldConfiguration {StructFieldName : "" , SubFields : FieldConfigurations {
6463 "Foo" : & FieldConfiguration {StructFieldName : "Foo" , CoerceFn : CoerceInt , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
65- "Baz" : & FieldConfiguration {StructFieldName : "Baz" , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
64+ "Baz" : & FieldConfiguration {StructFieldName : "Baz" , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
6665 }},
6766 }},
6867 "MapInfInf" : & FieldConfiguration {StructFieldName : "MapInfInf" , SupportedOperations : []MatchOperator {MatchIsEmpty , MatchIsNotEmpty }},
@@ -94,7 +93,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
9493 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
9594 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
9695 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
97- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
96+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
9897 }},
9998 "bar" : & FieldConfiguration {SubFields : FieldConfigurations {
10099 "Int" : & FieldConfiguration {StructFieldName : "Int" , CoerceFn : CoerceInt , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
@@ -110,7 +109,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
110109 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
111110 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
112111 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
113- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
112+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
114113 }},
115114 "baz" : & FieldConfiguration {SubFields : FieldConfigurations {
116115 "Int" : & FieldConfiguration {StructFieldName : "Int" , CoerceFn : CoerceInt , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
@@ -126,7 +125,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
126125 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
127126 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
128127 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
129- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
128+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
130129 }},
131130 },
132131 benchQuick : true ,
@@ -149,7 +148,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
149148 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
150149 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
151150 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
152- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
151+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
153152 }},
154153 "bar" : & FieldConfiguration {SubFields : FieldConfigurations {
155154 "Int" : & FieldConfiguration {StructFieldName : "Int" , CoerceFn : CoerceInt , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
@@ -165,7 +164,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
165164 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
166165 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
167166 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
168- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
167+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
169168 }},
170169 "baz" : & FieldConfiguration {SubFields : FieldConfigurations {
171170 "Int" : & FieldConfiguration {StructFieldName : "Int" , CoerceFn : CoerceInt , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
@@ -181,7 +180,7 @@ var fieldConfigTests map[string]fieldConfigTest = map[string]fieldConfigTest{
181180 "Float32" : & FieldConfiguration {StructFieldName : "Float32" , CoerceFn : CoerceFloat32 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
182181 "Float64" : & FieldConfiguration {StructFieldName : "Float64" , CoerceFn : CoerceFloat64 , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
183182 "Bool" : & FieldConfiguration {StructFieldName : "Bool" , CoerceFn : CoerceBool , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual }},
184- "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn }},
183+ "String" : & FieldConfiguration {StructFieldName : "String" , CoerceFn : CoerceString , SupportedOperations : []MatchOperator {MatchEqual , MatchNotEqual , MatchIn , MatchNotIn , MatchMatches , MatchNotMatches }},
185184 }},
186185 }},
187186 },
0 commit comments