package ppx_expect
Install
Dune Dependency
Authors
Maintainers
Sources
md5=a7daa59114638fd80f52b6adbb0db7ed
sha512=d26364f2c7c0a3d83e5ecc144f77875a00887853c72c03e0122d658acb4d1cb4c6d77fabc1222d775663db74f0345be2a33518dffac9feef57ece5e9e40dc709
doc/ppx_expect.runtime/Ppx_expect_runtime/Expect_node_formatting/index.html
Module Ppx_expect_runtime.Expect_node_formatting
Source
type t = {
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 enclosinglet%expect
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 |}]
*)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"%%"
.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.