Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOverflow ¶
AddOverflow generates two random instances of the integer type that are guaranteed to cause an overflow when added, and adds them. This function is expected to panic.
func AddSubCheck ¶
AddSubCheck generates two random instances of the integer type, adds y to x and checks that the result is not x, and then subtracts y from x and checks that the result is x again.
func AddZeroCheck ¶
AddZeroCheck generates a random instances of the integer type and checks that it does not change after adding zero.
func JSONFuzz ¶
JSONFuzz is the same as the Fuzz testing function exposed by surge, but it uses JSON.
func JSONMarshalUnmarshalCheck ¶
JSONMarshalUnmarshalCheck is the same as the MarshalUnmarshalCheck testing function exposed by surge, but it uses JSON.
func SubUnderflow ¶
SubUnderflow generates two random instances of the integer type that are guaranteed to cause an underflow when subtracted, and subtracts them. This function is expected to panic.
func SubZeroCheck ¶
SubZeroCheck generates a random instances of the integer type and checks that it does not change after subtracting zero.
Types ¶
This section is empty.