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

Function forbidden_simple

tests/test.rs:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62#[test]
63fn forbidden_simple() {
64 assert_eq!(check_and_reset(), false);
65 assert_no_alloc(|| {
66 do_alloc();
67 });
68 assert_eq!(check_and_reset(), true);
69}
70
71#[test]
72fn forbidden_in_nested() {

Callers

nothing calls this directly

Calls 2

assert_no_allocFunction · 0.85
do_allocFunction · 0.85

Tested by

no test coverage detected