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

Function test_trunk_is_text

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

Source from the content-addressed store, hash-verified

505
506 #[test]
507 fn test_trunk_is_text() {
508 let trunk = make_trunk();
509 assert!(trunk.is_text());
510
511 let binary_trunk = Trunk::new(
512 TrunkId::new(NodeId::new(1), 1),
513 Inode::new(43),
514 "image.png".to_string(),
515 Some(Encoding::Binary),
516 );
517 assert!(!binary_trunk.is_text());
518 }
519
520 #[test]
521 fn test_trunk_is_binary() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected