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

Function test_trunk_new

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

Source from the content-addressed store, hash-verified

469
470 #[test]
471 fn test_trunk_new() {
472 let trunk = make_trunk();
473 assert_eq!(trunk.id(), TrunkId::new(NodeId::new(1), 0));
474 assert_eq!(trunk.inode(), Inode::new(42));
475 assert_eq!(trunk.path(), "src/main.rs");
476 assert_eq!(trunk.encoding(), Some(Encoding::Utf8));
477 assert!(trunk.state().is_alive());
478 }
479
480 #[test]
481 fn test_trunk_is_text() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected