MCPcopy Create free account
hub / github.com/Windfisch/rust-assert-no-alloc / ok_simple

Function ok_simple

tests/test.rs:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40#[test]
41fn ok_simple() {
42 assert_eq!(check_and_reset(), false);
43 assert_no_alloc(|| {
44 });
45
46 do_alloc();
47 assert_eq!(check_and_reset(), false);
48}
49
50#[test]
51fn ok_nested() {

Callers

nothing calls this directly

Calls 2

assert_no_allocFunction · 0.85
do_allocFunction · 0.85

Tested by

no test coverage detected