MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / mac_command_error_count

Function mac_command_error_count

chirpstack/src/test/assert.rs:102–117  ·  view source on GitHub ↗
(dev_eui: EUI64, cid: lrwn::CID, count: u32)

Source from the content-addressed store, hash-verified

100}
101
102pub 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
119pub fn uplink_adr_history(dev_eui: EUI64, uh: Vec<internal::UplinkAdrHistory>) -> Validator {
120 Box::new(move || {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.80
get_device_sessionMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected