Remove unneeded test values
@@ -149,7 +149,6 @@ func TestAttributeExprValidate(t *testing.T) {
func TestAttributeExprAllRequired(t *testing.T) {
cases := map[string]struct {
typ DataType
- validation *ValidationExpr
expected []string
}{
"some required": {
@@ -164,7 +163,6 @@ func TestAttributeExprAllRequired(t *testing.T) {
},
"no required": {
typ: Boolean,
- validation: nil,
expected: nil,
},
}
@@ -172,7 +170,6 @@ func TestAttributeExprAllRequired(t *testing.T) {
for k, tc := range cases {
attribute := AttributeExpr{
Type: tc.typ,
- Validation: tc.validation,
}
if actual := attribute.AllRequired(); len(tc.expected) != len(actual) {
t.Errorf("%s: expected the number of all required values to match %d got %d ", k, len(tc.expected), len(actual))
