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

Function test_author_serialization

atomic-config/src/lib.rs:1538–1548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1536
1537 #[test]
1538 fn test_author_serialization() {
1539 let author = Author {
1540 name: "Test User".to_string(),
1541 email: Some("test@example.com".to_string()),
1542 identity: None,
1543 };
1544
1545 let toml_str = toml::to_string(&author).unwrap();
1546 let parsed: Author = toml::from_str(&toml_str).unwrap();
1547 assert_eq!(author, parsed);
1548 }
1549
1550 #[test]
1551 fn test_global_config_default() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected