MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_identity_to_author

Function test_identity_to_author

atomic-identity/src/lib.rs:253–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251
252 #[test]
253 fn test_identity_to_author() {
254 let identity = Identity::builder("alice")
255 .email("alice@example.com")
256 .build()
257 .unwrap();
258
259 let author = identity.to_author();
260 assert_eq!(author.name, "alice");
261 assert_eq!(author.email, Some("alice@example.com".to_string()));
262 assert!(author.identity.is_some());
263 }
264
265 #[test]
266 fn test_delegation() {

Callers

nothing calls this directly

Calls 4

emailMethod · 0.80
to_authorMethod · 0.80
unwrapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected