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

Function or

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

Source from the content-addressed store, hash-verified

854
855 #[test]
856 fn or() {
857 assert!(NONE.or(NONE).is_none().to_bool());
858 assert!(SOME.or(NONE).ct_eq(&SOME).to_bool());
859 assert!(NONE.or(SOME).ct_eq(&SOME).to_bool());
860 assert!(SOME.or(OTHER).ct_eq(&SOME).to_bool());
861 }
862
863 #[test]
864 fn some() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected