Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions progenitor-impl/src/httpmock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Generator {
value.to_string(),
))
} else {
Self(self.0.matches(|req| {
Self(self.0.is_true(|req| {
req.query_params
.as_ref()
.and_then(|qs| {
Expand All @@ -229,7 +229,7 @@ impl Generator {
value.to_string()
))
} else {
Self(self.0.matches(|req| {
Self(self.0.is_true(|req| {
req.headers
.as_ref()
.and_then(|hs| {
Expand Down
2 changes: 1 addition & 1 deletion progenitor-impl/tests/output/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ base64 = "0.21"
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4", features = ["string"] }
futures = "0.3"
httpmock = "0.7"
httpmock = "0.8"
progenitor-client = { path = "../../../progenitor-client" }
rand = { version = "0.8", features = ["serde1"] }
regex = "1.10"
Expand Down
6 changes: 3 additions & 3 deletions progenitor-impl/tests/output/src/buildomat_httpmock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub mod operations {
if let Some(value) = value.into() {
Self(self.0.query_param("minseq", value.to_string()))
} else {
Self(self.0.matches(|req| {
Self(self.0.is_true(|req| {
req.query_params
.as_ref()
.and_then(|qs| qs.iter().find(|(key, _)| key == "minseq"))
Expand Down Expand Up @@ -763,7 +763,7 @@ pub mod operations {
if let Some(value) = value.into() {
Self(self.0.query_param("id", value.to_string()))
} else {
Self(self.0.matches(|req| {
Self(self.0.is_true(|req| {
req.query_params
.as_ref()
.and_then(|qs| qs.iter().find(|(key, _)| key == "id"))
Expand Down Expand Up @@ -814,7 +814,7 @@ pub mod operations {
if let Some(value) = value.into() {
Self(self.0.header("accept-language", value.to_string()))
} else {
Self(self.0.matches(|req| {
Self(self.0.is_true(|req| {
req.headers
.as_ref()
.and_then(|hs| hs.iter().find(|(key, _)| key == "accept-language"))
Expand Down
Loading