Skip to content

Commit c36409c

Browse files
authored
Allow mock methods to be used in external apps (#253)
Make mock api available
1 parent ed40f5a commit c36409c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lambda-http/src/ext.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ pub trait RequestExt {
121121
/// Configures instance with query string parameters under #[cfg(test)] configurations
122122
///
123123
/// This is intended for use in mock testing contexts.
124-
#[cfg(test)]
125124
fn with_query_string_parameters<Q>(self, parameters: Q) -> Self
126125
where
127126
Q: Into<StrMap>;
@@ -137,7 +136,6 @@ pub trait RequestExt {
137136
/// Configures instance with path parameters under #[cfg(test)] configurations
138137
///
139138
/// This is intended for use in mock testing contexts.
140-
#[cfg(test)]
141139
fn with_path_parameters<P>(self, parameters: P) -> Self
142140
where
143141
P: Into<StrMap>;
@@ -182,7 +180,6 @@ impl RequestExt for http::Request<Body> {
182180
.unwrap_or_default()
183181
}
184182

185-
#[cfg(test)]
186183
fn with_query_string_parameters<Q>(self, parameters: Q) -> Self
187184
where
188185
Q: Into<StrMap>,
@@ -199,7 +196,6 @@ impl RequestExt for http::Request<Body> {
199196
.unwrap_or_default()
200197
}
201198

202-
#[cfg(test)]
203199
fn with_path_parameters<P>(self, parameters: P) -> Self
204200
where
205201
P: Into<StrMap>,

0 commit comments

Comments
 (0)