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

Function test_json_values

atomic-core/src/change/encoding.rs:519–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517
518 #[test]
519 fn test_json_values() {
520 // Verify serde renames to lowercase
521 assert_eq!(serde_json::to_string(&Encoding::Utf8).unwrap(), "\"utf8\"");
522 assert_eq!(
523 serde_json::to_string(&Encoding::Binary).unwrap(),
524 "\"binary\""
525 );
526 }
527
528 #[test]
529 fn test_postcard_roundtrip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected