1 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 // Copyright by contributors to this project.
3 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
4 
5 pub use crate::{aead::MockAeadType, dh::MockDhType, kdf::MockKdfType, kem::MockKemType};
6 
7 #[derive(Debug)]
8 pub struct TestError {}
9 
10 impl std::error::Error for TestError {}
11 
12 impl std::fmt::Display for TestError {
fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result13     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14         f.write_str("TestError")
15     }
16 }
17 
18 impl mls_rs_core::error::IntoAnyError for TestError {
into_dyn_error(self) -> Result<Box<dyn std::error::Error + Send + Sync>, Self>19     fn into_dyn_error(self) -> Result<Box<dyn std::error::Error + Send + Sync>, Self> {
20         Ok(self.into())
21     }
22 }
23