tests(server): initial cargo-mutants

This commit is contained in:
hdbg
2026-04-05 16:00:13 +02:00
committed by Skipper
parent 498e2e3145
commit 38284d84b6
9 changed files with 26 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ anyhow = "1.0.102"
postcard = { version = "1.1.3", features = ["use-std"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_with = "3.18.0"
mutants.workspace = true
[dev-dependencies]
insta = "1.46.3"

View File

@@ -133,6 +133,7 @@ pub async fn create_pool(url: Option<&str>) -> Result<DatabasePool, DatabaseSetu
Ok(pool)
}
#[mutants::skip]
pub async fn create_test_pool() -> DatabasePool {
use rand::distr::{Alphanumeric, SampleString as _};

View File

@@ -10,6 +10,7 @@ use tracing::info;
const PORT: u16 = 50051;
#[tokio::main]
#[mutants::skip]
async fn main() -> anyhow::Result<()> {
aws_lc_rs::default_provider().install_default().unwrap();