elvish/pkg/eval/vals/testutils_test.go
Kurtis Rader 71cd3835bc Don't dot import pkg/tt
Qualified imports of pkg/tt outnumber unqualified (27 to 24). Improve
consistency, and clarity, by changing the dot (unqualified) imports of
that package symbols to qualified.
2022-06-04 23:39:19 +01:00

13 lines
284 B
Go

package vals
import (
"src.elv.sh/pkg/tt"
)
// Returns a tt.Matcher that matches using the Equal function.
func eq(r any) tt.Matcher { return equalMatcher{r} }
type equalMatcher struct{ want any }
func (em equalMatcher) Match(got tt.RetValue) bool { return Equal(got, em.want) }