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

Function dr

chirpstack/src/test/assert.rs:91–100  ·  view source on GitHub ↗
(dev_eui: EUI64, dr: u32)

Source from the content-addressed store, hash-verified

89}
90
91pub fn dr(dev_eui: EUI64, dr: u32) -> Validator {
92 Box::new(move || {
93 let dev_eui = dev_eui;
94 Box::pin(async move {
95 let d = device::get(&dev_eui).await.unwrap();
96 let ds = d.get_device_session().unwrap();
97 assert_eq!(dr, ds.dr);
98 })
99 })
100}
101
102pub fn mac_command_error_count(dev_eui: EUI64, cid: lrwn::CID, count: u32) -> Validator {
103 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