You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what the correct generic version of what you are looking for should look like.. knowing Blah is an interface not a real type is a hard problem. Knowing whether something can be nil given only a type isn't, as far as I know, possible with Go.
If you have an idea how to do what you say with types, please feel free to raise a PR and I will take a look.
Existing matchers can do nil assertions on interface values because they match on T or *T but not a T that can be an interface(ie ptr)
wont compile - as the signature for NilPtr is assuming a struct T and returns a [*T] matcher...
The text was updated successfully, but these errors were encountered: