ring/
deprecated_test.rs

1// Copyright 2025 Brian Smith.
2//
3// Permission to use, copy, modify, and/or distribute this software for any
4// purpose with or without fee is hereby granted, provided that the above
5// copyright notice and this permission notice appear in all copies.
6//
7// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
15#![doc(hidden)]
16
17/// References a test input file.
18#[macro_export]
19macro_rules! test_file {
20    ($file_name:expr) => {
21        $crate::test::File {
22            file_name: $file_name,
23            contents: include_str!($file_name),
24        }
25    };
26}
27
28pub use crate::testutil::{
29    compile_time_assert_clone, compile_time_assert_copy, compile_time_assert_eq,
30    compile_time_assert_send, compile_time_assert_sync, from_hex, run, File, TestCase,
31};
32
33#[cfg(feature = "std")]
34pub use crate::testutil::compile_time_assert_std_error_error;
35
36#[deprecated(note = "internal API that will be removed")]
37#[doc(hidden)]
38pub mod rand {
39    #[deprecated(note = "internal API that will be removed")]
40    pub type FixedByteRandom = crate::testutil::rand::FixedByteRandom;
41    #[deprecated(note = "internal API that will be removed")]
42    pub type FixedSliceRandom<'a> = crate::testutil::rand::FixedSliceRandom<'a>;
43    #[deprecated(note = "internal API that will be removed")]
44    pub type FixedSliceSequenceRandom<'a> = crate::testutil::rand::FixedSliceSequenceRandom<'a>;
45}