package async

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Async.Expect_test_config_or_errorSource

An alternative to Async.Deferred_or_error_expect_test_config in which %expect has type unit rather than unit Deferred.Or_error.t. This lets one write:

  [%expect {| |};

rather than:

  let%bind () = [%expect {| |}] in

It also means that let%expect cannot terminate with %expect, and must instead terminate with return ().

include Expect_test_config_types.S with type 'a IO.t = 'a Async_kernel.Deferred.Or_error.t
Sourcemodule IO : sig ... end
Sourceval run : (unit -> unit IO.t) -> unit
Sourceval sanitize : string -> string
Sourceval upon_unreleasable_issue : Expect_test_config_types__Expect_test_config_types_intf.Upon_unreleasable_issue.t
OCaml

Innovation. Community. Security.