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

Function test_new_vertex

atomic-core/src/change/change.rs:1262–1271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1260 }
1261
1262 fn test_new_vertex() -> Insertion<Option<Hash>> {
1263 Insertion {
1264 predecessors: vec![],
1265 successors: vec![],
1266 flag: EdgeFlags::BLOCK,
1267 start: ChangePosition::new(0),
1268 end: ChangePosition::new(10),
1269 inode: test_hash_position(0),
1270 }
1271 }
1272
1273 fn sha1(byte: u8) -> GitObjectId {
1274 GitObjectId::new(GitHashAlgorithm::Sha1, vec![byte; 20]).unwrap()

Callers 2

test_change_add_hunkFunction · 0.70

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected