package ppx_expect

  1. Overview
  2. Docs
Cram like framework for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.1.tar.gz
md5=bc426d44bd413aa231e484c7c3378185
sha512=036b039cf069b2a283135bdb1d7643719bec2eaca59debd0b20d7b87742d4404c0db2259ef46ad7ecc77520f3272b02e2af5f83a740fdb0fc0d0479dfe3af9bb

doc/ppx_expect.runtime/Ppx_expect_runtime/Expect_node_formatting/index.html

Module Ppx_expect_runtime.Expect_node_formattingSource

Sourcetype t = {
  1. indent : Base.int;
    (*

    The number of spaces that the bodies of [%expect] nodes are indented with respect to the left edge of the extension point and that trailing [%expect] nodes are indented with respect to the enclosing let%expect

    *)
  2. always_on_own_line : Base.bool;
    (*

    Whether the output of [%expect] nodes should always be formatted so it gets its own lines, even if it is only one line long. If this option is true, one-line expectations will be printed like

    [%expect {|
      foo
    |}]

    rather than like

    [%expect {| foo |}]
    *)
  3. extension_sigil : Base.string;
    (*

    The sigil that should be printed to signal the start of an extension point. By default, this is "%", though in toplevel tests it changes to "%%".

    *)
  4. attribute_sigil : Base.string;
    (*

    The sigil that should be printed to signal the start of an attribute. By default, this is "@@".

    *)
}

Configurations for the formatting of rewritten expect nodes and attributes. The values in default are used by ppx_expect, but different values can be used by other clients of the expect test runtime.

Sourceval default : t

The default formatting configuration used in expect tests.

Sourcemodule Flexibility : sig ... end
OCaml

Innovation. Community. Security.