/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use aws_sdk_kms as kms; use kms::operation::create_alias::CreateAliasError; use kms::operation::generate_random::GenerateRandom; fn assert_send_sync() {} fn assert_send_fut(_: T) {} fn assert_debug() {} #[tokio::test] async fn types_are_send_sync() { assert_send_sync::(); assert_send_sync::>(); assert_send_sync::(); assert_send_sync::(); assert_send_sync::(); assert_send_sync::(); let conf = kms::Config::builder().build(); assert_send_fut(kms::Client::from_conf(conf).list_keys().send()); } #[tokio::test] async fn client_is_debug() { let conf = kms::Config::builder().build(); let client = kms::Client::from_conf(conf); assert_ne!(format!("{:?}", client), ""); } #[tokio::test] async fn client_is_clone() { let conf = kms::Config::builder().build(); let client = kms::Client::from_conf(conf); fn is_clone(it: impl Clone) { drop(it) } is_clone(client); } #[test] fn types_are_debug() { assert_debug::(); assert_debug::(); assert_debug::(); }