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

Function uplink_event

chirpstack/src/test/assert.rs:178–195  ·  view source on GitHub ↗
(up: integration_pb::UplinkEvent)

Source from the content-addressed store, hash-verified

176}
177
178pub fn uplink_event(up: integration_pb::UplinkEvent) -> Validator {
179 Box::new(move || {
180 let up = up.clone();
181 Box::pin(async move {
182 // Integration events are handled async.
183 sleep(Duration::from_millis(100)).await;
184
185 let mut event = mock::get_uplink_event().await.unwrap();
186
187 assert_ne!("", event.deduplication_id);
188 assert_ne!(None, event.time);
189
190 event.deduplication_id = "".into();
191 event.time = None;
192 assert_eq!(up, event);
193 })
194 })
195}
196
197pub fn ack_event(ack: integration_pb::AckEvent) -> Validator {
198 Box::new(move || {

Callers 1

send_uplink_eventMethod · 0.50

Calls 3

get_uplink_eventFunction · 0.85
unwrapMethod · 0.80
intoMethod · 0.45

Tested by

no test coverage detected