From cd8e90cafafc7042a1d390f1595f5be555d81843 Mon Sep 17 00:00:00 2001 From: Teknique Date: Thu, 25 May 2023 15:22:01 -0700 Subject: [PATCH] Added the bones of test_serialize_json --- veilid-core/src/tests/native/mod.rs | 4 ++++ veilid-core/src/veilid_api/tests/mod.rs | 1 + veilid-core/src/veilid_api/tests/test_serialize_json.rs | 3 +++ veilid-core/tests/web.rs | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100644 veilid-core/src/veilid_api/tests/test_serialize_json.rs diff --git a/veilid-core/src/tests/native/mod.rs b/veilid-core/src/tests/native/mod.rs index 613ac9e7..c687b1e0 100644 --- a/veilid-core/src/tests/native/mod.rs +++ b/veilid-core/src/tests/native/mod.rs @@ -33,6 +33,8 @@ pub async fn run_all_tests() { test_crypto::test_all().await; info!("TEST: test_envelope_receipt"); test_envelope_receipt::test_all().await; + info!("TEST: veilid_api::tests::test_serialize_json"); + veilid_api::tests::test_serialize_json::test_all().await; info!("TEST: veilid_api::tests::test_serialize_rkyv"); veilid_api::tests::test_serialize_rkyv::test_all().await; info!("TEST: routing_table::test_serialize_routing_table"); @@ -129,6 +131,8 @@ cfg_if! { run_test!(test_envelope_receipt); + run_test!(veilid_api, test_serialize_json); + run_test!(veilid_api, test_serialize_rkyv); run_test!(routing_table, test_serialize_routing_table); diff --git a/veilid-core/src/veilid_api/tests/mod.rs b/veilid-core/src/veilid_api/tests/mod.rs index 3c3d2f33..2d85d773 100644 --- a/veilid-core/src/veilid_api/tests/mod.rs +++ b/veilid-core/src/veilid_api/tests/mod.rs @@ -1 +1,2 @@ +pub mod test_serialize_json; pub mod test_serialize_rkyv; diff --git a/veilid-core/src/veilid_api/tests/test_serialize_json.rs b/veilid-core/src/veilid_api/tests/test_serialize_json.rs new file mode 100644 index 00000000..bd5a3c36 --- /dev/null +++ b/veilid-core/src/veilid_api/tests/test_serialize_json.rs @@ -0,0 +1,3 @@ +pub async fn test_all() { + // test_simple_string().await; +} diff --git a/veilid-core/tests/web.rs b/veilid-core/tests/web.rs index ec4e1b31..2f88f780 100644 --- a/veilid-core/tests/web.rs +++ b/veilid-core/tests/web.rs @@ -90,6 +90,12 @@ async fn wasm_test_envelope_receipt() { test_envelope_receipt::test_all().await; } +#[wasm_bindgen_test] +async fn wasm_test_serialize_json() { + setup(); + test_serialize_json::test_all().await; +} + #[wasm_bindgen_test] async fn wasm_test_serialize_rkyv() { setup();