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

Function test_local_byte_with_inode

atomic-core/src/change/local.rs:370–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368
369 #[test]
370 fn test_local_byte_with_inode() {
371 let inode_pos = Position::new(Inode::new(42), ChangePosition::new(0));
372 let local = LocalByte::with_inode("test.rs", 10, inode_pos, 500);
373
374 assert!(local.has_inode());
375 assert_eq!(local.inode.unwrap().change.get(), 42);
376 }
377
378 #[test]
379 fn test_local_byte_to_local() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected