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

Function observe_secret_box_alloc_test

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

Source from the content-addressed store, hash-verified

67
68#[test]
69fn observe_secret_box_alloc_test() {
70 let b1 = ObserveSecretBox::new([u128::MAX; 10]);
71 core::hint::black_box(&b1);
72 let b2 = SecretBox::new([u8::MAX; 160]);
73 core::hint::black_box(&b2);
74}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected