Skip to content

Commit e0649b0

Browse files
Jayce Faynestaktrace
authored andcommitted
add test
1 parent 9675653 commit e0649b0

2 files changed

Lines changed: 540 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,6 +1909,14 @@ mod tests {
19091909
};
19101910
}
19111911

1912+
#[test]
1913+
fn test_recursion_limit() {
1914+
let mail_filepath = "./tests/files/nested.eml";
1915+
let mail = std::fs::read(mail_filepath)
1916+
.expect(&format!("Unable to open the file [{}]", mail_filepath));
1917+
parse_mail(&mail).err().unwrap();
1918+
}
1919+
19121920
#[test]
19131921
fn test_body_content_encoding_with_multipart() {
19141922
let mail_filepath = "./tests/files/test_email_01.txt";

0 commit comments

Comments
 (0)