@@ -140,7 +140,7 @@ func TestParseQueryFlags(t *testing.T) {
140
140
}
141
141
}
142
142
143
- func TestParseQueryRuleBlocklist (t * testing.T ) {
143
+ func TestParseQueryRuleSkiplist (t * testing.T ) {
144
144
for _ , comments := range [][]string {
145
145
{
146
146
" name: CreateFoo :one" ,
@@ -158,7 +158,7 @@ func TestParseQueryRuleBlocklist(t *testing.T) {
158
158
" @sqlc-vet-disable delete-without-where " ,
159
159
},
160
160
} {
161
- _ , flags , ruleBlocklist , err := ParseCommentFlags (comments )
161
+ _ , flags , ruleSkiplist , err := ParseCommentFlags (comments )
162
162
if err != nil {
163
163
t .Errorf ("expected comments to parse, got err: %s" , err )
164
164
}
@@ -167,16 +167,16 @@ func TestParseQueryRuleBlocklist(t *testing.T) {
167
167
t .Errorf ("expected @sqlc-vet-disable flag not found" )
168
168
}
169
169
170
- if _ , ok := ruleBlocklist ["sqlc/db-prepare" ]; ! ok {
171
- t .Errorf ("expected rule not found in blocklist " )
170
+ if _ , ok := ruleSkiplist ["sqlc/db-prepare" ]; ! ok {
171
+ t .Errorf ("expected rule not found in skiplist " )
172
172
}
173
173
174
- if _ , ok := ruleBlocklist ["delete-without-where" ]; ! ok {
175
- t .Errorf ("expected rule not found in blocklist " )
174
+ if _ , ok := ruleSkiplist ["delete-without-where" ]; ! ok {
175
+ t .Errorf ("expected rule not found in skiplist " )
176
176
}
177
177
178
- if _ , ok := ruleBlocklist ["update-without-where" ]; ok {
179
- t .Errorf ("unexpected rule found in blocklist " )
178
+ if _ , ok := ruleSkiplist ["update-without-where" ]; ok {
179
+ t .Errorf ("unexpected rule found in skiplist " )
180
180
}
181
181
}
182
182
}
0 commit comments