MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_find_by_nid

Function test_find_by_nid

crates/stdlib/src/ssl/oid.rs:397–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395
396 #[test]
397 fn test_find_by_nid() {
398 let entry = find_by_nid(13).unwrap();
399 assert_eq!(entry.short_name, "CN");
400 assert_eq!(entry.long_name, "commonName");
401 assert_eq!(entry.oid_string(), "2.5.4.3");
402 }
403
404 #[test]
405 fn test_find_by_oid_string() {

Callers

nothing calls this directly

Calls 2

find_by_nidFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected