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

Function zeroize_check_tuple

zeroize/tests/zeroize.rs:100–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99#[test]
100fn zeroize_check_tuple() {
101 let mut tup1 = (42u8,);
102 tup1.zeroize();
103 assert_eq!(tup1, (0u8,));
104
105 let mut tup2 = (42u8, 42u8);
106 tup2.zeroize();
107 assert_eq!(tup2, (0u8, 0u8));
108}
109
110#[test]
111fn zeroize_on_drop_check_tuple() {

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected