Skip to content

Commit

Permalink
Update library API to use thiserror instead of anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
candysonya committed Feb 4, 2024
1 parent f2f7f93 commit cc95976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/rust_reflection_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ fn test_verify_buffer_limit_max_depth_fails() {
let res = verify_with_options(&buffer, &schema, &verify_options);

assert!(res.is_err());
assert_eq!(format!("{:#?}", res.err().unwrap()), "DepthLimitReached");
assert!(format!("{:#?}", res.err().unwrap()).contains("DepthLimitReached"));
}

#[test]
Expand All @@ -1231,7 +1231,7 @@ fn test_verify_buffer_limit_max_table_fails() {
let res = verify_with_options(&buffer, &schema, &verify_options);

assert!(res.is_err());
assert_eq!(format!("{:#?}", res.err().unwrap()), "TooManyTables");
assert!(format!("{:#?}", res.err().unwrap()).contains("TooManyTables"));
}

#[test]
Expand All @@ -1247,7 +1247,7 @@ fn test_verify_buffer_limit_max_size_fails() {
let res = verify_with_options(&buffer, &schema, &verify_options);

assert!(res.is_err());
assert_eq!(format!("{:#?}", res.err().unwrap()), "ApparentSizeTooLarge");
assert!(format!("{:#?}", res.err().unwrap()).contains("ApparentSizeTooLarge"));
}

fn load_file_as_buffer(path: &str) -> Vec<u8> {
Expand Down

0 comments on commit cc95976

Please sign in to comment.