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

Function test_trunk_is_text

atomic-core/src/crdt/trunk.rs:481–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480 #[test]
481 fn test_trunk_is_text() {
482 let trunk = make_trunk();
483 assert!(trunk.is_text());
484
485 let binary_trunk = Trunk::new(
486 TrunkId::new(NodeId::new(1), 1),
487 Inode::new(43),
488 "image.png".to_string(),
489 Some(Encoding::Binary),
490 );
491 assert!(!binary_trunk.is_text());
492 }
493
494 #[test]
495 fn test_trunk_is_binary() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected