From ffdd63fa8ec3575bc3087241ebdcbccc71818ab7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 9 Dec 2024 10:49:59 +1100 Subject: [PATCH] units: test for C-SEND-SYNC Done as part of the Rust API guidelines checklist. Add a unit test for `Send` and one for `Sync`. --- units/tests/api.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/units/tests/api.rs b/units/tests/api.rs index 8649e7397..eb6a9530e 100644 --- a/units/tests/api.rs +++ b/units/tests/api.rs @@ -235,3 +235,17 @@ fn api_all_non_error_types_have_non_empty_debug() { let debug = format!("{:?}", t.b.k); assert!(!debug.is_empty()); } + +#[test] +fn test_send() { + fn assert_send() {} + assert_send::(); + assert_send::(); +} + +#[test] +fn test_sync() { + fn assert_sync() {} + assert_sync::(); + assert_sync::(); +}