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

Function test_cyclic_dependency_error

atomic-core/src/apply/insertion.rs:655–666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

653
654 #[test]
655 fn test_cyclic_dependency_error() {
656 let error = LocalApplyError::CyclicDependency {
657 message: "Down context cannot reference current change".to_string(),
658 };
659
660 match error {
661 LocalApplyError::CyclicDependency { message } => {
662 assert!(message.contains("Down context"));
663 }
664 _ => panic!("Wrong error type"),
665 }
666 }
667
668 #[test]
669 fn test_dependency_missing_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected