()
| 836 | |
| 837 | #[test] |
| 838 | fn test_invalid_trunk_state() { |
| 839 | let trunk_id = TrunkId::new(NodeId::new(1), 0); |
| 840 | let err = ApplyError::invalid_trunk_state(trunk_id, "deleted", "delete"); |
| 841 | assert!(err.is_invalid_state()); |
| 842 | assert!(err.to_string().contains("deleted")); |
| 843 | assert!(err.to_string().contains("delete")); |
| 844 | } |
| 845 | |
| 846 | #[test] |
| 847 | fn test_invalid_branch_state() { |
nothing calls this directly
no outgoing calls
no test coverage detected