Add some utilities.

This commit is contained in:
jregan
2019-06-12 18:56:58 -07:00
parent ba49fd4c18
commit 755dd3d024
5 changed files with 96 additions and 49 deletions

View File

@@ -381,7 +381,7 @@ func TestFilterBy(t *testing.T) {
for name, test := range tests {
test := test
t.Run(name, func(t *testing.T) {
got := test.resMap.SubsetThatCouldBeReferencedBy(test.filter)
got := test.resMap.SubsetThatCouldBeReferencedById(test.filter)
err := test.expected.ErrorIfNotEqualSets(got)
if err != nil {
t.Fatalf("Expected %v but got back %v", test.expected, got)