mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +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.
|
||||
/// - Strings support patterns described in [`compare`].
|
||||
/// - 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 {
|
||||
self.expect_json = Some(expected.to_string());
|
||||
self
|
||||
|
Loading…
x
Reference in New Issue
Block a user