MCPcopy Create free account
hub / github.com/base/base / test_batch_validity

Function test_batch_validity

crates/consensus/protocol/src/batch/validity.rs:199–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198 #[test]
199 fn test_batch_validity() {
200 assert!(BatchValidity::Accept.is_accept());
201 assert!(BatchValidity::Drop(BatchDropReason::ParentHashMismatch).is_drop());
202 assert!(BatchValidity::Past.is_outdated());
203 assert!(BatchValidity::Future.is_future());
204 }
205
206 #[test]
207 fn test_drop_reason() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected