(dev_eui: EUI64, cid: lrwn::CID, count: u32)
| 100 | } |
| 101 | |
| 102 | pub fn mac_command_error_count(dev_eui: EUI64, cid: lrwn::CID, count: u32) -> Validator { |
| 103 | Box::new(move || { |
| 104 | let dev_eui = dev_eui; |
| 105 | Box::pin(async move { |
| 106 | let d = device::get(&dev_eui).await.unwrap(); |
| 107 | let ds = d.get_device_session().unwrap(); |
| 108 | assert_eq!( |
| 109 | count, |
| 110 | ds.mac_command_error_count |
| 111 | .get(&(cid.to_u8() as u32)) |
| 112 | .cloned() |
| 113 | .unwrap_or(0) |
| 114 | ) |
| 115 | }) |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | pub fn uplink_adr_history(dev_eui: EUI64, uh: Vec<internal::UplinkAdrHistory>) -> Validator { |
| 120 | Box::new(move || { |
nothing calls this directly
no test coverage detected