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

Function zeroize_check_tuple

zeroize/tests/zeroize.rs:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87#[test]
88fn zeroize_check_tuple() {
89 let mut tup1 = (42u8,);
90 tup1.zeroize();
91 assert_eq!(tup1, (0u8,));
92
93 let mut tup2 = (42u8, 42u8);
94 tup2.zeroize();
95 assert_eq!(tup2, (0u8, 0u8));
96}
97
98#[test]
99fn zeroize_on_drop_check_tuple() {

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected