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

Function test_is_text

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

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn test_is_text() {
384 assert!(Encoding::Utf8.is_text());
385 assert!(Encoding::Utf16Le.is_text());
386 assert!(Encoding::Utf16Be.is_text());
387 assert!(Encoding::Latin1.is_text());
388 assert!(!Encoding::Binary.is_text());
389 }
390
391 #[test]
392 fn test_is_binary() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected