Module Tezt_mavryk.Codec

Run mavkit-codec commands.

In all functions below, path can be used to override the path to mavkit-codec, which is Constant.mavryk_codec by default.

val encode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> Tezt_wrapper.JSON.u -> string Lwt.t

Run mavkit-codec encode <name> from <json>.

val spawn_encode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> Tezt_wrapper.JSON.u -> Tezt_wrapper.Process.t

Same as encode, but do not wait for the process to exit.

val decode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> string -> Tezt_wrapper.JSON.t Lwt.t

Run mavkit-codec decode <name> from <binary>.

val spawn_decode : ?path:string -> ?hooks:Tezt_wrapper.Process.hooks -> name:string -> string -> Tezt_wrapper.Process.t

Same as decode, but do not wait for the process to exit.

val dump_encodings : ?path:string -> unit -> Tezt_wrapper.JSON.t Lwt.t

Run mavkit-codec dump encodings.

val spawn_dump_encodings : ?path:string -> unit -> Tezt_wrapper.Process.t

Same as dump_encodings, but do not wait for the process to exit.