Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ test_as_ref
Function
test_as_ref
atomic-core/src/diff/line.rs:525–529 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
523
524
#[test]
525
fn test_as_ref() {
526
let line = Line::new(b
"hello"
);
527
let bytes: &[u8] = line.as_ref();
528
assert_eq!(bytes, b
"hello"
);
529
}
530
531
#[test]
532
fn test_clone() {
Callers
nothing calls this directly
Calls
1
as_ref
Method · 0.80
Tested by
no test coverage detected