perl-test-must
Panic-on-failure helpers for Rust tests.
Problem it solves
This workspace bans unwrap() and expect() in production code, but tests
still need concise ways to express "this must succeed". This crate provides
small helpers that intentionally panic on failure so test code stays readable
without violating the workspace lint policy.
Public API
mustextracts the value from aResultmust_someextracts the value from anOptionmust_errextracts the error from aResult
Example
use ;
let value: = Ok;
assert_eq!;
let item = Some;
assert_eq!;
let err: = Err;
assert_eq!;
Workspace role
Used in tests across the workspace as the policy-compliant replacement for
unwrap, unwrap_err, and expect.
License
MIT OR Apache-2.0