assert-call 0.1.2

A tool for testing that ensures code parts are called as expected.
Documentation
1
2
3
4
5
6
7
8
9
use assert_call::call;

// Use a file containing only a single test,
// as multiple tests in a file can cause multiple tests to run simultaneously in the same process and initialize `CallRecorder` with other tests
#[should_panic]
#[test]
fn no_call_recorder() {
    call!("0");
}