Packages
Browse packages indexed by the registry.
A simple function to assert that two numbers are close to each other.
A tool for testing that ensures code parts are called as expected.
Convenient assertion macros that print the failed expressions and their evaluated values
A simple runtime assertion utility for environment variables.
This crate provides the `assert_eq_float!` macros that support floats.
Test utility for checking if two graphs are isomorphic.
Macro for static assert types implement a trait or not
Provides a macro to assert that a type implements a trait.
Easily compare two JSON values and get great output
Easily compare two JSON values and get great output
improved assert macros
For testing if Sea Orm Migrators are reversible
improved assert macros
Custom Rust allocator allowing to monitor memory allocations for a thread. Aborts or prints a warning if allocating although forbidden.
A simple, no_std compatible Rust macro that works like the inverse of assert! - passes when condition is false
Macro which, given a variable and a block of code, executes the block of code and checks that the variable has not changed.
Derive macro for asserting the memory offset of fields in a struct.
DEPRECATED: Use https://crates.io/crates/snapshot-testing instead.
Assert the order of Rust enum variants.
Derive macros for `assert-order`.
Assert that a panic happens, and optionally what (kind of) panic happens
The util to assert macro parsing.
The core for 'assert-parse'
The util macro for 'assert-parse'
Compile time type size assertion attribute macro
Snapshot testing and assertion library for Rust
Macros for asserting multiline strings
A procedural macro for ergonomic structural assertions in tests
Procedural macro implementation for assert-struct
the testing macro tools.
A utility for comparing token streams: applies rustfmt for consistent formatting and leverages pretty_assertions to clearly visualize differences.
Macro to assert types across potentially different crate versions are compatible
Unsafe assertions that allow for optimizations in release mode.
A type that asserts that the underlying type is not moved after being pinned and mutably accessed.
Macro for testing that (generic) floating point numbers are within some tolerance
procedural macros for assert2
A one-liner solution to replace assertions in tests by the expressive assertions of the assert2 crate
Macros for the assert2ify crate
assert approximately equal
Simple create that helps in asserting type bounds
static assertions for crate features, with descriptive errors.
Test CLI Applications.
Test CLI Applications.
very simple cli to assert a string is contained or not contained in a stream