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

Function test_local_byte_from_local

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

Source from the content-addressed store, hash-verified

408
409 #[test]
410 fn test_local_byte_from_local() {
411 let local = Local::new("test.rs", 42);
412 let local_byte: LocalByte = local.into();
413
414 assert_eq!(local_byte.path, "test.rs");
415 assert_eq!(local_byte.line, 42);
416 assert_eq!(local_byte.byte, 0);
417 }
418
419 #[test]
420 fn test_local_from_local_byte() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected