package plebeia

  1. Overview
  2. Docs

Module Internal.Test_utilsSource

Sourceval string_of_node : Plebeia__.Node.node -> int -> string

Dump a node

Sourceval simple_string_of_node : Plebeia__.Node.node -> string

Dump a node, but not recursively

Sourceval dot_of_node : Plebeia__.Node.node -> string

Obtain Graphviz dot file representation of the tree

Sourceval dot_of_cursor : Plebeia__.Cursor.cursor -> string

Obtain Graphviz dot file representation of the cursor

Sourceval validate_node : Plebeia__.Context.t -> Plebeia__.Node.node -> (unit, string) Result.t

Invariant checking of node

Sourceval save_cursor_to_dot : string -> Plebeia__.Cursor.cursor -> unit
Sourceval save_node_to_dot : string -> Plebeia__.Node.node -> unit

Graphviz visualization

Sourcemodule Exn : sig ... end
Sourcemodule Format : sig ... end
Sourcemodule String : sig ... end
Sourcemodule Hashtbl : sig ... end
Sourcemodule List : sig ... end
Sourcemodule Open : sig ... end

Recommended to open this module to use the values without module paths

Sourceval from_Some : 'a option -> 'a
Sourceval to_file : file:string -> string -> unit

Create a file with the given string

Sourceval (^/) : string -> string -> string

Filename.concat

Sourceval with_time : (unit -> 'a) -> 'a * float

Time the function in seconds

Sourceval failwithf : ('a, unit, string, 'b) format4 -> 'a

failwith with printf interface

Sourceval timed : (unit -> 'a) -> ('a, [> `Exn of exn ]) result * float
Sourcemodule RS = Random.State
Sourceval random_string : RS.t -> int -> string
Sourceval random_short_segment : ?length:int -> Random.State.t -> Segment.segment
Sourceval random_segment : ?length:int -> Random.State.t -> Segment.segment
Sourceval random_choice : RS.t -> 'a list -> 'a
Sourceval shuffle : Random.State.t -> 'a list -> 'a list
Sourceval tempfile : string
Sourceval test_with_context : int -> (Plebeia__.Context.t -> 'a) -> 'a
Sourceval test_with_cursor : (Plebeia__.Cursor.cursor -> 'a) -> 'a
Sourceval path_of_string : string -> Segment.segment
Sourceval ok_or_fail : ('a, Error.t) result -> 'a
Sourceval must_fail : ('a, 'b) result -> unit
Sourceval path : string -> Segment.segment
Sourceval value : string -> Value.t
Sourceval normalize : Plebeia__.Node.node -> Plebeia__.Node.node
Sourceval normalize_view : Plebeia__.Node.view -> Plebeia__.Node.view
Sourceval equal_nodes : Plebeia__.Node.node -> Plebeia__.Node.node -> bool
Sourceval random_node : Random.State.t -> int -> Plebeia__.Node.node
Sourceval all_children : Plebeia__.Context.t -> Plebeia__.Node.node -> (Segment.segment * [> `Directory of Plebeia__.Node.node | `File ]) list
Sourceval every_leaves : Plebeia__.Context.t -> Plebeia__.Node.node -> Segment.t list list
Sourceval xassert : bool -> unit
OCaml

Innovation. Community. Security.