MCPcopy Create free account
hub / github.com/RustCrypto/utils / proxy_alloc_test

Function proxy_alloc_test

zeroize/tests/alloc.rs:77–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76#[test]
77fn proxy_alloc_test() {
78 let b1 = SecretBox::new([u128::MAX; 10]);
79 core::hint::black_box(&b1);
80 drop(b1);
81
82 let b2 = SecretBox::new([u8::MAX; 160]);
83 core::hint::black_box(&b2);
84 drop(b2);
85
86 let b3 = ObserveSecretBox::new([u128::MAX; 10]);
87 core::hint::black_box(&b3);
88 drop(b3);
89
90 let b4 = SecretBox::new([u8::MAX; 160]);
91 core::hint::black_box(&b4);
92 drop(b4);
93}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected