mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
doc(test): Document 'with_json' replacement
This commit is contained in:
parent
bb5488c9a0
commit
16448d45d7
@ -876,7 +876,9 @@ impl Execs {
|
|||||||
/// - The order of arrays is ignored.
|
/// - The order of arrays is ignored.
|
||||||
/// - Strings support patterns described in [`compare`].
|
/// - Strings support patterns described in [`compare`].
|
||||||
/// - Use `"{...}"` to match any object.
|
/// - Use `"{...}"` to match any object.
|
||||||
#[deprecated(note = "replaced with `Execs::with_stdout_data(expected.json_lines())`")]
|
#[deprecated(
|
||||||
|
note = "replaced with `Execs::with_stdout_data(expected.is_json().against_jsonlines())`"
|
||||||
|
)]
|
||||||
pub fn with_json(&mut self, expected: &str) -> &mut Self {
|
pub fn with_json(&mut self, expected: &str) -> &mut Self {
|
||||||
self.expect_json = Some(expected.to_string());
|
self.expect_json = Some(expected.to_string());
|
||||||
self
|
self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user