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

Function n_f_cnt_down

chirpstack/src/test/assert.rs:35–44  ·  view source on GitHub ↗
(dev_eui: EUI64, f_cnt: u32)

Source from the content-addressed store, hash-verified

33}
34
35pub fn n_f_cnt_down(dev_eui: EUI64, f_cnt: u32) -> Validator {
36 Box::new(move || {
37 let dev_eui = dev_eui;
38 Box::pin(async move {
39 let d = device::get(&dev_eui).await.unwrap();
40 let ds = d.get_device_session().unwrap();
41 assert_eq!(f_cnt, ds.n_f_cnt_down);
42 })
43 })
44}
45
46pub fn a_f_cnt_down(dev_eui: EUI64, f_cnt: u32) -> Validator {
47 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