@@ -128,27 +128,6 @@ schema_check:
128128 // Validate ParsedCheck
129129 if tt .expectedCheck .ParsedCheck != nil {
130130 t .Errorf ("ParsedCheck is non-nil, expected nil for schema checks" )
131-
132- //if check.ParsedCheck == nil {
133- // t.Errorf("ParsedCheck is nil, expected non-nil")
134- //} else {
135- // if check.ParsedCheck.FunctionName != tt.expectedCheck.ParsedCheck.FunctionName {
136- // t.Errorf("ParsedCheck.FunctionName mismatch: got %s, want %s",
137- // check.ParsedCheck.FunctionName, tt.expectedCheck.ParsedCheck.FunctionName)
138- // }
139- // if check.ParsedCheck.Scope != tt.expectedCheck.ParsedCheck.Scope {
140- // t.Errorf("ParsedCheck.Scope mismatch: got %s, want %s",
141- // check.ParsedCheck.Scope, tt.expectedCheck.ParsedCheck.Scope)
142- // }
143- // if check.ParsedCheck.Operator != tt.expectedCheck.ParsedCheck.Operator {
144- // t.Errorf("ParsedCheck.Operator mismatch: got %s, want %s",
145- // check.ParsedCheck.Operator, tt.expectedCheck.ParsedCheck.Operator)
146- // }
147- // if check.ParsedCheck.ThresholdValue != tt.expectedCheck.ParsedCheck.ThresholdValue {
148- // t.Errorf("ParsedCheck.ThresholdValue mismatch: got %v, want %v",
149- // check.ParsedCheck.ThresholdValue, tt.expectedCheck.ParsedCheck.ThresholdValue)
150- // }
151- //}
152131 }
153132 })
154133 }
@@ -217,15 +196,4 @@ rules:
217196 if schemaCheck .ParsedCheck != nil {
218197 t .Errorf ("ParsedCheck should not be present" )
219198 }
220-
221- //else {
222- // if schemaCheck.ParsedCheck.FunctionName != "expect_columns_ordered" {
223- // t.Errorf("ParsedCheck FunctionName mismatch: got %s",
224- // schemaCheck.ParsedCheck.FunctionName)
225- // }
226- // if schemaCheck.ParsedCheck.Scope != ScopeSchema {
227- // t.Errorf("ParsedCheck Scope mismatch: got %s",
228- // schemaCheck.ParsedCheck.Scope)
229- // }
230- //}
231199}
0 commit comments