rapid icon indicating copy to clipboard operation
rapid copied to clipboard

statemachine cleanup method argument

Open meridional opened this issue 3 years ago • 1 comments

Right now, statemachine's cleanup method is of type func() instead of 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".

meridional avatar Jul 19 '22 15:07 meridional

Did you mean Cleanup(t *rapid.T)? Can you please tell a bit more about the test you want to construct?

flyingmutant avatar Jul 20 '22 08:07 flyingmutant

Related: #49.

flyingmutant avatar Feb 07 '23 09:02 flyingmutant