This is an automated email from the ASF dual-hosted git repository. nickva pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb-jiffy.git
commit 0693a9a827604dd971835e8221090175d89bb412 Author: Nick Vatamaniuc <[email protected]> AuthorDate: Tue Mar 31 01:02:59 2026 -0400 Increase coverage for bad options Here we're mostly being silly and padding out stats --- test/jiffy_12_error_tests.erl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/jiffy_12_error_tests.erl b/test/jiffy_12_error_tests.erl index 54de9a7..fa636f2 100644 --- a/test/jiffy_12_error_tests.erl +++ b/test/jiffy_12_error_tests.erl @@ -82,6 +82,13 @@ enc_invalid_object_member_key_test_() -> ]}. +encode_bad_option_test() -> + ?assertError(badarg, jiffy:encode(1, [not_a_valid_option])). + + +decode_bad_option_test() -> + ?assertError(badarg, jiffy:decode(<<"1">>, [not_a_valid_option])). + enc_error(Type, Obj, Case) -> ?_assertMatch({'EXIT', {{Type, Obj}, _}}, (catch jiffy:encode(Case))).
