baby's first unit tests

This commit is contained in:
2024-09-01 09:26:33 +02:00
parent bdb3a5f2b4
commit 880afb14b1
7 changed files with 235 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ impl<'a> Game<'a> {
}
}
#[derive(serde::Deserialize, serde::Serialize)]
#[derive(serde::Deserialize, serde::Serialize, PartialEq, Debug, Clone)]
pub struct Config {
pub update_only: bool,
pub skip_self_update: bool,
@@ -75,7 +75,7 @@ impl PrintPrefix {
}
}
#[derive(serde::Deserialize, serde::Serialize, Default)]
#[derive(serde::Deserialize, serde::Serialize, Default, PartialEq, Debug, Clone)]
pub struct Cache {
pub iw4x_revision: String,
pub hashes: HashMap<String, String>,