Module QCheck2.Tree
A tree represents a generated value and its successive shrunk values.
type 'a tA tree of random generated values, where the root contains the value used for the test, and the sub-trees contain shrunk values (as trees, to be able to shrink several times a value) used if the test fails.
val root : 'a t -> 'aroot treereturns the root value of the tree of generated valuest.
val children : 'a t -> 'a t Stdlib.Seq.tchildren treereturns the direct sub-trees of the tree of generated valuest.
val pp : ?depth:int -> (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unitpp ?depth pp_a ppf treepretty-prints the tree of generated valuestreeusing the pretty-print formatterppf. Values of type'awill be printed using the given pretty-printerpp_a.As a tree
tcan be potentially huge when fully evaluated, you can control the maximum depth the printer goes withdepth.Nonemeans "everything"0means "only the root"1means "the root and its direct shrinks"2means "the root, its direct shrinks, and the shrinks of its shrinks"- etc.