Files
inbuxa-server/tests/src/lib.rs
T
jcoffey-dev 7dae9b29fd Import upstream v0.16.22, stripped
Upstream commit: 474dd0229cb20cf513036619781ed97bd8073c3f
Enterprise-only files removed or emptied: 63
Enterprise-only snippets removed: 117 in 50 files
Dangling module declarations removed: 5
Cargo edits turning enterprise off: 14
Verification: clean
Enterprise feature gates left for rebuilt features: 19 in 18 files

Produced by tools/fork/strip.py. The full report is in docs/fork/strip-reports/ on main.
2026-09-18 10:21:56 -07:00

61 lines
1.2 KiB
Rust

/*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/
#[cfg(test)]
use ::store::registry::bootstrap::Bootstrap;
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
use tikv_jemallocator::Jemalloc;
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
#[cfg(test)]
pub mod automation;
#[cfg(test)]
pub mod cluster;
#[cfg(test)]
pub mod directory;
#[cfg(test)]
pub mod imap;
#[cfg(test)]
pub mod jmap;
#[cfg(test)]
pub mod smtp;
#[cfg(test)]
pub mod store;
#[cfg(test)]
pub mod system;
#[cfg(test)]
pub mod telemetry;
#[cfg(test)]
pub mod utils;
#[cfg(test)]
pub mod webdav;
#[cfg(test)]
pub trait AssertConfig {
fn assert_no_errors(self) -> Self;
fn assert_no_warnings(self) -> Self;
}
#[cfg(test)]
impl AssertConfig for Bootstrap {
fn assert_no_errors(self) -> Self {
if !self.errors.is_empty() {
panic!("Errors: {:#?}", self.errors);
}
self
}
fn assert_no_warnings(self) -> Self {
if !self.warnings.is_empty() {
panic!("Warnings: {:#?}", self.warnings);
}
self
}
}