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

Function test_from_extension_text

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

Source from the content-addressed store, hash-verified

491
492 #[test]
493 fn test_from_extension_text() {
494 // Text files should return None (let content detection decide)
495 assert_eq!(Encoding::from_extension("txt"), None);
496 assert_eq!(Encoding::from_extension("rs"), None);
497 assert_eq!(Encoding::from_extension("md"), None);
498 assert_eq!(Encoding::from_extension("json"), None);
499 }
500
501 // Serialization Tests
502

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected