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

Function test_trunk_new

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

Source from the content-addressed store, hash-verified

495
496 #[test]
497 fn test_trunk_new() {
498 let trunk = make_trunk();
499 assert_eq!(trunk.id(), TrunkId::new(NodeId::new(1), 0));
500 assert_eq!(trunk.inode(), Inode::new(42));
501 assert_eq!(trunk.path(), "src/main.rs");
502 assert_eq!(trunk.encoding(), Some(Encoding::Utf8));
503 assert!(trunk.state().is_alive());
504 }
505
506 #[test]
507 fn test_trunk_is_text() {

Callers

nothing calls this directly

Calls 1

make_trunkFunction · 0.85

Tested by

no test coverage detected