Skip to content

Overview

This reference is generated from the source docstrings and is grouped by the mixin that implements each assertion, mirroring the code layout.

The assertions actually available on a value are the union of the mixins for its type. On a string (assert_that("x")), for example, that is everything on String assertions, Containment assertions, Collection assertions, File & path assertions, and Core & objects apart from matches_structure(), which a type checker offers on mappings, models and objects only.

For a task-oriented view organized by value type instead, see the Type assertions guide.

Signatures here are the runtime implementations. How the static return type narrows per value type (the typed overloads that drive editor autocomplete) is explained in Type safety.