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

Function forbidden_in_nested

tests/test.rs:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71#[test]
72fn forbidden_in_nested() {
73 assert_eq!(check_and_reset(), false);
74 assert_no_alloc(|| {
75 assert_no_alloc(|| {
76 do_alloc();
77 });
78 });
79 assert_eq!(check_and_reset(), true);
80}
81
82#[test]
83fn forbidden_after_nested() {

Callers

nothing calls this directly

Calls 2

assert_no_allocFunction · 0.85
do_allocFunction · 0.85

Tested by

no test coverage detected