Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct { ID int64 `json:"id"` Data interface{} `json:"data"` }
TestCase is a storable data object, which plays role of container for generated test cases. Tester encoded
type Tester ¶
Tester tries to to find generated test cases, which cause failed tests and write correpsonding test data to Tester.TestFile
func (Tester) R ¶
R runs memorized tests, when runs at most N tests with generated test args. If tester.TestFile is "", then uses default value "testdata/TESTNAME.json" If Tester.N <= 0, then uses default value 400. If Tester.Rnd is nil, then uses random generator initialized with time.Now().UnixNano(). If any test fails, then Tester.R writes corresponding arg to tester.TestFile
Click to show internal directories.
Click to hide internal directories.