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

Function test_downlink_frame

chirpstack/src/storage/downlink_frame.rs:48–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47 #[tokio::test]
48 async fn test_downlink_frame() {
49 let _guard = test::prepare().await;
50 let df = internal::DownlinkFrame {
51 downlink_id: 12345,
52 downlink_frame: Some(gw::DownlinkFrame {
53 ..Default::default()
54 }),
55 ..Default::default()
56 };
57
58 save(&df).await.unwrap();
59 let df_get = get_and_del(12345).await.unwrap();
60 assert_eq!(df, df_get);
61 }
62}

Callers

nothing calls this directly

Calls 4

prepareFunction · 0.85
get_and_delFunction · 0.85
unwrapMethod · 0.80
saveFunction · 0.70

Tested by

no test coverage detected