From c8906e3c35d869c50578e7562faf8f667ae7c485 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylov Date: Tue, 17 Sep 2024 19:13:50 +0700 Subject: [PATCH] Remove useless tests --- xsd-parser/src/generator/validator.rs | 10 ---------- xsd-parser/tests/simple_type/mod.rs | 4 ---- 2 files changed, 14 deletions(-) diff --git a/xsd-parser/src/generator/validator.rs b/xsd-parser/src/generator/validator.rs index fc6f93c..3186aad 100644 --- a/xsd-parser/src/generator/validator.rs +++ b/xsd-parser/src/generator/validator.rs @@ -143,16 +143,6 @@ fn gen_min_length_validation(value: &str, name: &str) -> String { mod test { use super::*; - #[test] - fn test_validator_for_tuple_struct() { - struct Foo(()); - impl Validate for Foo { - fn validate(&self) -> Result<(), String> { - Err("Error".to_owned()) - } - } - } - #[test] fn test_gen_max_exclusive_validation() { let expected = r#" diff --git a/xsd-parser/tests/simple_type/mod.rs b/xsd-parser/tests/simple_type/mod.rs index a4843ee..4783219 100644 --- a/xsd-parser/tests/simple_type/mod.rs +++ b/xsd-parser/tests/simple_type/mod.rs @@ -7,10 +7,6 @@ fn deserialization_works() { use xsd_macro_utils::*; - trait Validate { - fn validate(&self) -> Result<(), String>; - } - include!("expected.rs"); }