Skip to content

Commit

Permalink
Remove useless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySamoylov committed Sep 17, 2024
1 parent 80050d9 commit c8906e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions xsd-parser/src/generator/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand Down
4 changes: 0 additions & 4 deletions xsd-parser/tests/simple_type/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ fn deserialization_works() {

use xsd_macro_utils::*;

trait Validate {
fn validate(&self) -> Result<(), String>;
}

include!("expected.rs");
}

Expand Down

0 comments on commit c8906e3

Please sign in to comment.