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

Function test_trunk_is_binary

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

Source from the content-addressed store, hash-verified

493
494 #[test]
495 fn test_trunk_is_binary() {
496 let trunk = make_trunk();
497 assert!(!trunk.is_binary());
498
499 let binary_trunk = Trunk::new(
500 TrunkId::new(NodeId::new(1), 1),
501 Inode::new(43),
502 "image.png".to_string(),
503 Some(Encoding::Binary),
504 );
505 assert!(binary_trunk.is_binary());
506 }
507
508 #[test]
509 fn test_trunk_set_state() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected