Add validation code for MIME checkers

This commit is contained in:
Jonathan Giddy 2016-02-19 13:11:13 +00:00
parent 8950d7aa6d
commit 208bae7f2e
2 changed files with 54 additions and 0 deletions

View file

@ -50,6 +50,12 @@ fn test_sniff_mp4_matcher_long() {
assert!(matcher.matches(&data));
}
#[test]
fn test_validate_classifier() {
let classifier = MIMEClassifier::new();
classifier.validate().expect("Validation error")
}
#[cfg(test)]
fn test_sniff_with_flags(filename_orig: &path::Path,
type_string: &str,