Closed meridional closed 1 year ago
Right now, statemachine's cleanup method is of type func() instead of func(*testing.T).
func()
func(*testing.T)
It might be too late to change the function signature, but it might be worth to support both?
One use case is that we can use Init to test the "constructors" of a data structure, and use Cleanup to test the "destructors".
Init
Cleanup
Did you mean Cleanup(t *rapid.T)? Can you please tell a bit more about the test you want to construct?
Cleanup(t *rapid.T)
Related: #49.
Right now, statemachine's cleanup method is of type
func()
instead offunc(*testing.T)
.It might be too late to change the function signature, but it might be worth to support both?
One use case is that we can use
Init
to test the "constructors" of a data structure, and useCleanup
to test the "destructors".