MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / assert_json_reject

Function assert_json_reject

tests/json/tests.rs:131–144  ·  view source on GitHub ↗

Negative half of the wrapper tests above (which never feed one invalid input): each reject is asserted on an error-message SUBSTRING, not bare is_err(), so a rejection can't pass for the wrong reason (e.g. a parse hiccup instead of the bound). The is_ok() baselines are the positive tests above, which accept the same shapes with one dimension fixed.

(json: &str, needle: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected