Implement ReporterFunc, LoggerFunc, and others #249
Labels
feature
New feature or request
good first issue
Good for newcomers
help wanted
Contributions are welcome
Milestone
We have several single method interfaces in expect.go:
It would be convenient to provide an implementation for each of them similar to http.HandlerFunc, so that the user does not need to create a struct in sample cases.
For example, for Reporter we can provide ReporterFunc that is a wrapper for
func (message string, args ...interface{})
.We can place each implementation right after corresponding interface in expect.go. Each one should have a documentation comment with code example that demonstrates how to use it with WithConfig. Each one also should be covered by unit test.
The text was updated successfully, but these errors were encountered: