Skip to content

Multiple assertions on panic messages #63

Description

@florian1345

It would be nice to apply multiple assertions to the caught message of a panicking function through .panics() or similar functions. Some ideas:

  • .panics() and related functions return a special AssertThatPanic which allows fluent assertions on all panic metadata
  • a new function .panics_with_message_that() which returns an AssertThat<String> for the message
  • a new function .panics_with_message_satisfying(...) that takes an assertion function

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions