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

Function tx_power_index

chirpstack/src/test/assert.rs:57–66  ·  view source on GitHub ↗
(dev_eui: EUI64, tx_power: u32)

Source from the content-addressed store, hash-verified

55}
56
57pub fn tx_power_index(dev_eui: EUI64, tx_power: u32) -> Validator {
58 Box::new(move || {
59 let dev_eui = dev_eui;
60 Box::pin(async move {
61 let d = device::get(&dev_eui).await.unwrap();
62 let ds = d.get_device_session().unwrap();
63 assert_eq!(tx_power, ds.tx_power_index);
64 })
65 })
66}
67
68pub fn nb_trans(dev_eui: EUI64, nb_trans: u32) -> Validator {
69 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