2016-10-12 17:00:19 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2016-10-06 20:30:04 +04:00
|
|
|
open Hash
|
2017-01-23 14:09:45 +04:00
|
|
|
open Error_monad
|
2016-09-30 13:43:50 +04:00
|
|
|
include (module type of struct include Kaputt.Assertion end)
|
|
|
|
|
2017-01-23 14:09:45 +04:00
|
|
|
val is_ok : ?msg:string -> 'a tzresult -> unit
|
|
|
|
val is_error : ?msg:string -> 'a tzresult -> unit
|
|
|
|
|
2016-09-30 13:43:50 +04:00
|
|
|
val fail_msg : ('a, Format.formatter, unit, 'b) format4 -> 'a
|
|
|
|
|
|
|
|
val fail : string -> string -> ('a, Format.formatter, unit, 'b) format4 -> 'a
|
|
|
|
|
|
|
|
val equal_persist_list :
|
|
|
|
?msg:string -> Persist.key list -> Persist.key list -> unit
|
|
|
|
|
2016-10-06 20:30:04 +04:00
|
|
|
val equal_block_hash_list :
|
|
|
|
?msg:string -> Block_hash.t list -> Block_hash.t list -> unit
|
|
|
|
|
2016-11-14 19:26:34 +04:00
|
|
|
val equal_string_list :
|
|
|
|
?msg:string -> string list -> string list -> unit
|
2016-10-06 20:30:04 +04:00
|
|
|
|
2016-09-30 13:43:50 +04:00
|
|
|
val equal_string_option : ?msg:string -> string option -> string option -> unit
|
|
|
|
|
|
|
|
val equal_error_monad :
|
|
|
|
?msg:string -> Error_monad.error -> Error_monad.error -> unit
|
|
|
|
|
2017-02-24 20:17:53 +04:00
|
|
|
val equal_block_set :
|
|
|
|
?msg:string -> Block_hash.Set.t -> Block_hash.Set.t -> unit
|
|
|
|
|
|
|
|
val equal_block_map :
|
|
|
|
?msg:string -> eq:('a -> 'a -> bool) ->
|
|
|
|
'a Block_hash.Map.t -> 'a Block_hash.Map.t -> unit
|
2016-09-30 13:43:50 +04:00
|
|
|
|
|
|
|
val equal_operation :
|
|
|
|
?msg:string ->
|
2017-02-24 20:17:53 +04:00
|
|
|
State.Operation.t option ->
|
|
|
|
State.Operation.t option ->
|
2016-09-30 13:43:50 +04:00
|
|
|
unit
|
|
|
|
|
|
|
|
val equal_block :
|
|
|
|
?msg:string ->
|
2017-02-24 20:17:53 +04:00
|
|
|
Store.Block_header.t option ->
|
|
|
|
Store.Block_header.t option ->
|
2016-09-30 13:43:50 +04:00
|
|
|
unit
|
|
|
|
|
|
|
|
val equal_result :
|
|
|
|
?msg:string ->
|
|
|
|
('a, 'b) result ->
|
|
|
|
('a, 'b) result ->
|
|
|
|
equal_ok:(?msg:string -> 'a -> 'a -> 'c) ->
|
|
|
|
equal_err:(?msg:string -> 'b -> 'b -> 'c) -> 'c
|
2016-10-20 18:15:31 +04:00
|
|
|
|
|
|
|
val equal_exn : ?msg:string -> exn -> exn -> unit
|
|
|
|
|
|
|
|
val test_fail :
|
|
|
|
?msg:string ->
|
|
|
|
?prn:('a -> string) ->
|
|
|
|
(unit -> 'a) ->
|
|
|
|
(exn -> bool) ->
|
|
|
|
unit
|
2017-03-30 13:26:11 +04:00
|
|
|
|
|
|
|
val equal_float:
|
|
|
|
?eq:(float -> float -> bool) ->
|
|
|
|
?prn:(float -> string) -> ?msg:string -> float -> float -> unit
|