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

Function join_event

chirpstack/src/test/assert.rs:159–176  ·  view source on GitHub ↗
(join: integration_pb::JoinEvent)

Source from the content-addressed store, hash-verified

157}
158
159pub fn join_event(join: integration_pb::JoinEvent) -> Validator {
160 Box::new(move || {
161 let join = join.clone();
162 Box::pin(async move {
163 // Integration events are handled async.
164 sleep(Duration::from_millis(100)).await;
165
166 let mut event = mock::get_join_event().await.unwrap();
167
168 assert_ne!("", event.deduplication_id);
169 assert_ne!(None, event.time);
170
171 event.deduplication_id = "".into();
172 event.time = None;
173 assert_eq!(join, event);
174 })
175 })
176}
177
178pub fn uplink_event(up: integration_pb::UplinkEvent) -> Validator {
179 Box::new(move || {

Callers 2

send_join_eventMethod · 0.50
send_join_eventMethod · 0.50

Calls 3

get_join_eventFunction · 0.85
unwrapMethod · 0.80
intoMethod · 0.45

Tested by

no test coverage detected