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

Function test_file_ops_into_parts

atomic-core/src/change/ops.rs:931–943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

929
930 #[test]
931 fn test_file_ops_into_parts() {
932 let ops = FileOps::create(
933 test_trunk_id(),
934 "test.txt".to_string(),
935 Some(Encoding::Utf8),
936 );
937 let (trunk_id, path, trunk_op, line_ops) = ops.into_parts();
938
939 assert_eq!(trunk_id, test_trunk_id());
940 assert_eq!(path, "test.txt");
941 assert!(trunk_op.is_some());
942 assert!(line_ops.is_empty());
943 }
944
945 // LineOps Tests
946

Callers

nothing calls this directly

Calls 2

test_trunk_idFunction · 0.70
into_partsMethod · 0.45

Tested by

no test coverage detected