Skip to main content

Module mode

Module mode 

Source

Structs§

Capture
Panic
Panic mode. When an assertion fails, a panic message is raised and the program terminates immediately. Subsequent assertions after a failure are therefore not executed. This is the default mode and allows an AssertThat to be mapped to a different type with a condition, failing when that condition cannot be met. A good example for that is assert_that(Err("foo")).is_err().is_equal_to("foo"), where the is_err implementation can map the contained actual value to the results error value and allow for simpler chaining of assertions.

Traits§

Mode