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

Function test_change_depends_on

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

Source from the content-addressed store, hash-verified

1414
1415 #[test]
1416 fn test_change_depends_on() {
1417 let dep = Hash::of(b"dep");
1418 let change = Change::new(ChangeHeader::new("Test"), vec![], vec![], vec![dep]);
1419 assert!(change.depends_on(&dep));
1420 assert!(!change.depends_on(&Hash::of(b"other")));
1421 }
1422
1423 #[test]
1424 fn test_change_knows() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected