-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure log does not reveal pointers #7
Comments
Thanks a lot for the detailed bug report, will try to fix this today. |
Hmm, I though I used the wrong verb from |
While this usability issue is important one, I think I want to leave the things as is for now. The reasons for this are:
The last point is probably the most important one. Rapid right now is pretty minimalistic in design and implementation, and I want to try to resist feature creep for as long as possible. |
Out of curiosity:
|
As for The hook idea sounds interesting! What do you think the interface should look like, and what use cases should it cover? |
That's an interesting question. Not sure it's one I can safely answer, haha. Initial gut feel would be: func WithEngineOptions(... config) Runner
type config func(engine) // <- unexposed for a reason
type Runner interface {
Check(t *testing.T, prop func(*T))
Run(m StateMachine) func(*T)
}
// avoiding a BC break:
var defaultInstance = WithEngineOptions()
var Check = defaultInstance.Check
var Run = defaultInstance.Run
// As for the available options, I'd say the initial one would be the
func WithValueFormatter(func(v interface{}) string) It would likely be a bit of work, but it would also dodge a bit of heartache when it comes to using this library in anger. Using the |
When a failed test output contains pointers, I'd expect to see the pointer value, not the address
Example code:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: