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

Function device_session

chirpstack/src/test/assert.rs:246–255  ·  view source on GitHub ↗
(dev_eui: EUI64, ds: internal::DeviceSession)

Source from the content-addressed store, hash-verified

244}
245
246pub fn device_session(dev_eui: EUI64, ds: internal::DeviceSession) -> Validator {
247 Box::new(move || {
248 let ds = ds.clone();
249 Box::pin(async move {
250 let d = device::get(&dev_eui).await.unwrap();
251 let ds_get = d.get_device_session().unwrap();
252 assert_eq!(&ds, ds_get);
253 })
254 })
255}
256
257pub fn no_device_session(dev_eui: EUI64) -> Validator {
258 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