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

Function ok_nested

tests/test.rs:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50#[test]
51fn ok_nested() {
52 assert_eq!(check_and_reset(), false);
53 assert_no_alloc(|| {
54 assert_no_alloc(|| {
55 });
56 });
57
58 do_alloc();
59 assert_eq!(check_and_reset(), false);
60}
61
62#[test]
63fn forbidden_simple() {

Callers

nothing calls this directly

Calls 2

assert_no_allocFunction · 0.85
do_allocFunction · 0.85

Tested by

no test coverage detected