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

Function or

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected