Test_utilsSourceinclude module type of struct include Plebeia.Debug endDump a node
Dump a node, but not recursively
Obtain Graphviz dot file representation of the tree
Obtain Graphviz dot file representation of the cursor
Graphviz visualization
include module type of struct include Plebeia.Utils endinclude module type of OpenCreate a file with the given string
Filename.concat
Time the function in seconds
with_time for lwt
failwith with printf interface
Tail recursive list concat
Return the words occupied by the object. Only for debugging. This costs a lot
val with_context_conf_lwt :
(Plebeia.Context.config -> 'a Lwt.t) ->
(Plebeia.Context.config * 'a) list Lwt.tval with_context_lwt :
(Plebeia.Context.t -> 'a Lwt.t) ->
(Plebeia.Context.config * 'a) list Lwt.tval with_memory_only_context :
(Plebeia.Context.t -> 'a) ->
(Plebeia.Context.config * 'a) list Lwt.tval with_vc :
?prefix:string ->
(Plebeia.Vc.t -> 'a Lwt.t) ->
(Plebeia.Context.config * 'a) list Lwt.tval with_memory_only_cursor :
(Plebeia.Cursor.t -> 'a) ->
(Plebeia.Context.config * 'a) list Lwt.tval all_children :
Plebeia.Context.t ->
Plebeia.Node_type.node ->
(Plebeia.Segment.t * [> `Directory of Plebeia.Node.node | `File ]) listval choose_random_node :
float ->
RS.t ->
Plebeia.Context.t ->
Plebeia.Node_type.node ->
Plebeia.Segment.Segs.tval make_resemble :
RS.t ->
Plebeia.Context.t ->
Plebeia.Node_type.node ->
Plebeia.Node_type.nodeval gen_node :
Plebeia.Context.t ->
Random.State.t ->
?min_nodes:int ->
int ->
Plebeia.Node_type.tval random_segs_to_bud_or_leaf :
RS.t ->
Plebeia.Cursor.cursor ->
Plebeia.Segment.t list optionval prepare_tree :
Random.State.t ->
Plebeia.Cursor.t ->
path_bits:int ->
nfiles:int ->
vbytes:int ->
Plebeia.Cursor.t * Plebeia.Segment.t listval random_terminal :
Plebeia.Context.t ->
Plebeia.Node_type.node ->
Random.State.t ->
Plebeia__Segment.segment list * Plebeia.Node_type.node