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

Function ct_eq

ctutils/src/ct_option.rs:705–711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

703
704 #[test]
705 fn ct_eq() {
706 assert!(NONE.ct_eq(&NONE).to_bool());
707 assert!(NONE.ct_ne(&SOME).to_bool());
708 assert!(SOME.ct_ne(&NONE).to_bool());
709 assert!(SOME.ct_eq(&SOME).to_bool());
710 assert!(SOME.ct_ne(&OTHER).to_bool());
711 }
712
713 #[test]
714 fn ct_select() {

Callers 1

ct_eqMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected