package async

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

Module Async.Expect_test_config_with_unit_expect

An alternative to Async.Expect_test_config in which %expect has type unit rather than unit Deferred.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_flush.t = 'a with type 'a IO_run.t = 'a Async_kernel.Deferred.t
module IO_run : sig ... end
module IO_flush : sig ... end
val flush : unit -> unit IO_flush.t
val run : (unit -> unit IO_run.t) -> unit
val flushed : unit -> bool
val upon_unreleasable_issue : Expect_test_config_types__.Expect_test_config_types_intf.Upon_unreleasable_issue.t