Skip to content

Commit

Permalink
docs: Add comment explain why matcher is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Oct 30, 2024
1 parent 1e23a7e commit 1c91334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/pact_ffi/src/mock_server/form_urlencoded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ mod test {
"number_value_with_matcher_and_generator=123".to_string(),
matchingrules_list!{"body"; "$.number_value_with_matcher_and_generator" => [MatchingRule::Number]}
)]
// Missing value => null + generators will be used => but they are not supported, so it's fine to remove the matcher.
// Missing value => null will be used => but it is not supported, so matcher is removed.
#[case(
json!({ "number_matcher_only": { "pact:matcher:type": "number", "min": 0, "max": 10 } }),
"".to_string(),
Expand Down

0 comments on commit 1c91334

Please sign in to comment.