rapid
rapid copied to clipboard
Rapid is a modern Go property-based testing library
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?...
This PR implements the proposal of #30. I am using interface `rapid.TB` instead of `rapid.T` to introduce a test adapter for checking the `PrintStats()` methods. That reads a little odd,...
In Hypothesis and other QuickCheck-like implementations, it is possible to calculate statistics, usually to validate that test data generation works as expected or is skewed somehow, as described here: https://hypothesis.readthedocs.io/en/latest/details.html#test-statistics...
This adds an RFC 1035 compliant domain name generator and an RFC 3986 compliant URL generator. Closes #17 Signed-off-by: Walter Scheper
Goal: Show extensibility with custom generator and generator result filter. Problem: User must read the source code to figure out not simple var generation. He wants the generation of slices,...
So that people know that an error was found and the tests did not hang.
As there is code that can work with `a := []int{}`, but fail with `var a []int`. Can we treat empty slices as having something like `len = -1` during...
Generating proper URLs is tricky, and seems like something a library like rapid should provide. The implementation in hypothesis seems like a good starting point, though the URL generator is...
When a failed test output contains pointers, I'd expect to see the pointer value, not the address Example code: ```go package exmaple import ( "testing" "github.com/flyingmutant/rapid" ) type Example struct...