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

Function test_author_json_with_identity

atomic-core/src/change/header.rs:503–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501
502 #[test]
503 fn test_author_json_with_identity() {
504 let author = Author::with_identity("Alice", Some("alice@example.com"), "KEY123");
505 let json = serde_json::to_string(&author).unwrap();
506 let parsed: Author = serde_json::from_str(&json).unwrap();
507 assert_eq!(author, parsed);
508 }
509
510 // ChangeHeader Tests
511

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected