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

Function test_trunk_is_binary

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

Source from the content-addressed store, hash-verified

519
520 #[test]
521 fn test_trunk_is_binary() {
522 let trunk = make_trunk();
523 assert!(!trunk.is_binary());
524
525 let binary_trunk = Trunk::new(
526 TrunkId::new(NodeId::new(1), 1),
527 Inode::new(43),
528 "image.png".to_string(),
529 Some(Encoding::Binary),
530 );
531 assert!(binary_trunk.is_binary());
532 }
533
534 #[test]
535 fn test_trunk_set_state() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected