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

Function create_application

chirpstack/src/storage/application.rs:739–755  ·  view source on GitHub ↗
(tenant_id: Option<Uuid>)

Source from the content-addressed store, hash-verified

737 }
738
739 pub async fn create_application(tenant_id: Option<Uuid>) -> Application {
740 let tenant_id = match tenant_id {
741 Some(v) => v.into(),
742 None => {
743 let t = storage::tenant::test::create_tenant().await;
744 t.id
745 }
746 };
747
748 let a = Application {
749 tenant_id,
750 name: "test application".into(),
751 description: "test application description".into(),
752 ..Default::default()
753 };
754 create(a).await.unwrap()
755 }
756
757 #[tokio::test]
758 async fn test_application() {

Callers 8

create_device_keysFunction · 0.85
create_deviceFunction · 0.85
test_applicationFunction · 0.85
applicationFunction · 0.85
deviceFunction · 0.85
device_queueFunction · 0.85
multicast_groupFunction · 0.85
fuota_deploymentFunction · 0.85

Calls 4

create_tenantFunction · 0.85
unwrapMethod · 0.80
createFunction · 0.70
intoMethod · 0.45

Tested by 1

test_applicationFunction · 0.68