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

Function enabled_uplink_channel_indices

chirpstack/src/test/assert.rs:79–89  ·  view source on GitHub ↗
(dev_eui: EUI64, channels: Vec<u32>)

Source from the content-addressed store, hash-verified

77}
78
79pub fn enabled_uplink_channel_indices(dev_eui: EUI64, channels: Vec<u32>) -> Validator {
80 Box::new(move || {
81 let dev_eui = dev_eui;
82 let channels = channels.clone();
83 Box::pin(async move {
84 let d = device::get(&dev_eui).await.unwrap();
85 let ds = d.get_device_session().unwrap();
86 assert_eq!(channels, ds.enabled_uplink_channel_indices);
87 })
88 })
89}
90
91pub fn dr(dev_eui: EUI64, dr: u32) -> Validator {
92 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