HaveField only locates non-pointer receiver functions, but not pointer receivers. In the following minimal example (on playground), HaveField locates the non-pointer receiver for T, but then fails for the pointer receiver of T2.
I would have expected HaveField to shield test writers from such "nitty" details. Should we fix it (the matcher, not the writer)? How so; by taking the pointer to the struct value when the lookup fails and retrying again?
The text was updated successfully, but these errors were encountered: