Improve comments in name transform code.

This commit is contained in:
Jeffrey Regan
2019-06-10 15:48:53 -07:00
parent e1e622d985
commit 9c36ac28fa
3 changed files with 83 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.ResourcesThatCouldReference(test.filter)
got := test.resMap.SubsetThatCouldBeReferencedBy(test.filter)
err := test.expected.ErrorIfNotEqualSets(got)
if err != nil {
t.Fatalf("Expected %v but got back %v", test.expected, got)