@@ -65,7 +65,7 @@ func (s *convertSuite) TestConvertPredicate_Empty() {
65
65
}
66
66
67
67
func (s * convertSuite ) TestConvertPredicate_And () {
68
- predicates := []tasks.Predicate {
68
+ testCases := []tasks.Predicate {
69
69
predicates .And (
70
70
predicates .Universal [tasks.Task ](),
71
71
predicates .Empty [tasks.Task ](),
@@ -102,13 +102,13 @@ func (s *convertSuite) TestConvertPredicate_And() {
102
102
),
103
103
}
104
104
105
- for _ , predicate := range predicates {
105
+ for _ , predicate := range testCases {
106
106
s .Equal (predicate , FromPersistencePredicate (ToPersistencePredicate (predicate )))
107
107
}
108
108
}
109
109
110
110
func (s * convertSuite ) TestConvertPredicate_Or () {
111
- predicates := []tasks.Predicate {
111
+ testCases := []tasks.Predicate {
112
112
predicates .Or (
113
113
predicates .Universal [tasks.Task ](),
114
114
predicates .Empty [tasks.Task ](),
@@ -145,13 +145,13 @@ func (s *convertSuite) TestConvertPredicate_Or() {
145
145
),
146
146
}
147
147
148
- for _ , predicate := range predicates {
148
+ for _ , predicate := range testCases {
149
149
s .Equal (predicate , FromPersistencePredicate (ToPersistencePredicate (predicate )))
150
150
}
151
151
}
152
152
153
153
func (s * convertSuite ) TestConvertPredicate_Not () {
154
- predicates := []tasks.Predicate {
154
+ testCases := []tasks.Predicate {
155
155
predicates .Not (predicates .Universal [tasks.Task ]()),
156
156
predicates .Not (predicates .Empty [tasks.Task ]()),
157
157
predicates .Not (predicates .And [tasks.Task ](
@@ -169,25 +169,25 @@ func (s *convertSuite) TestConvertPredicate_Not() {
169
169
})),
170
170
}
171
171
172
- for _ , predicate := range predicates {
172
+ for _ , predicate := range testCases {
173
173
s .Equal (predicate , FromPersistencePredicate (ToPersistencePredicate (predicate )))
174
174
}
175
175
}
176
176
177
177
func (s * convertSuite ) TestConvertPredicate_NamespaceID () {
178
- predicates := []tasks.Predicate {
178
+ testCases := []tasks.Predicate {
179
179
tasks .NewNamespacePredicate (nil ),
180
180
tasks .NewNamespacePredicate ([]string {}),
181
181
tasks .NewNamespacePredicate ([]string {uuid .New (), uuid .New (), uuid .New ()}),
182
182
}
183
183
184
- for _ , predicate := range predicates {
184
+ for _ , predicate := range testCases {
185
185
s .Equal (predicate , FromPersistencePredicate (ToPersistencePredicate (predicate )))
186
186
}
187
187
}
188
188
189
189
func (s * convertSuite ) TestConvertPredicate_TaskType () {
190
- predicates := []tasks.Predicate {
190
+ testCases := []tasks.Predicate {
191
191
tasks .NewTypePredicate (nil ),
192
192
tasks .NewTypePredicate ([]enumsspb.TaskType {}),
193
193
tasks .NewTypePredicate ([]enumsspb.TaskType {
@@ -197,7 +197,7 @@ func (s *convertSuite) TestConvertPredicate_TaskType() {
197
197
}),
198
198
}
199
199
200
- for _ , predicate := range predicates {
200
+ for _ , predicate := range testCases {
201
201
s .Equal (predicate , FromPersistencePredicate (ToPersistencePredicate (predicate )))
202
202
}
203
203
}
0 commit comments