Rename api ErrorList for clarity

This commit is contained in:
Tim Hockin
2014-10-24 09:43:14 -07:00
parent 2bbd11eda6
commit d6effe3c6d
7 changed files with 74 additions and 70 deletions

View File

@@ -82,7 +82,7 @@ func TestErrListPrefix(t *testing.T) {
},
}
for _, testCase := range testCases {
errList := ErrorList{testCase.Err}
errList := ValidationErrorList{testCase.Err}
prefix := errList.Prefix("foo")
if prefix == nil || len(prefix) != len(errList) {
t.Errorf("Prefix should return self")
@@ -112,7 +112,7 @@ func TestErrListPrefixIndex(t *testing.T) {
},
}
for _, testCase := range testCases {
errList := ErrorList{testCase.Err}
errList := ValidationErrorList{testCase.Err}
prefix := errList.PrefixIndex(1)
if prefix == nil || len(prefix) != len(errList) {
t.Errorf("PrefixIndex should return self")