Skip to content

grooviegermanikus/rust-soft-assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Defensive Programming Pattern to allow to check for conditions without panicking in production code (i.e. not in tests).

Add to Cargo.toml:

rust-soft-assert = { git = "https://github.com/grooviegermanikus/rust-soft-assert.git", tag = "v0.2" }
soft_assert!(false, "This is a soft assert");

About

Turn assertions into harmless logging instead of panics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages