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

Function ct_eq

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

Source from the content-addressed store, hash-verified

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

Callers 1

ct_eqMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected