mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 21:44:37 +00:00
chore(deps): update rust crate insta to v1.38.0 (#10701)
This commit is contained in:
parent
20d69ea504
commit
4047d456b6
3 changed files with 7 additions and 19 deletions
14
Cargo.lock
generated
14
Cargo.lock
generated
|
@ -1046,9 +1046,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "insta"
|
name = "insta"
|
||||||
version = "1.35.1"
|
version = "1.38.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7c985c1bef99cf13c58fade470483d81a2bfe846ebde60ed28cc2dddec2df9e2"
|
checksum = "3eab73f58e59ca6526037208f0e98851159ec1633cf17b6cd2e1f2c3fd5d53cc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console",
|
"console",
|
||||||
"globset",
|
"globset",
|
||||||
|
@ -1058,7 +1058,6 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"similar",
|
"similar",
|
||||||
"walkdir",
|
"walkdir",
|
||||||
"yaml-rust",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3698,15 +3697,6 @@ dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "yaml-rust"
|
|
||||||
version = "0.4.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
|
|
||||||
dependencies = [
|
|
||||||
"linked-hash-map",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yansi"
|
name = "yansi"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
|
|
|
@ -70,7 +70,7 @@ pub(crate) fn version() -> VersionInfo {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use insta::{assert_display_snapshot, assert_json_snapshot};
|
use insta::{assert_json_snapshot, assert_snapshot};
|
||||||
|
|
||||||
use super::{CommitInfo, VersionInfo};
|
use super::{CommitInfo, VersionInfo};
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ mod tests {
|
||||||
version: "0.0.0".to_string(),
|
version: "0.0.0".to_string(),
|
||||||
commit_info: None,
|
commit_info: None,
|
||||||
};
|
};
|
||||||
assert_display_snapshot!(version);
|
assert_snapshot!(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -95,7 +95,7 @@ mod tests {
|
||||||
commits_since_last_tag: 0,
|
commits_since_last_tag: 0,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
assert_display_snapshot!(version);
|
assert_snapshot!(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -110,7 +110,7 @@ mod tests {
|
||||||
commits_since_last_tag: 24,
|
commits_since_last_tag: 24,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
assert_display_snapshot!(version);
|
assert_snapshot!(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -132,9 +132,7 @@ mod tests {
|
||||||
($value: ident) => {{
|
($value: ident) => {{
|
||||||
// The debug representation for the backslash are two backslashes (escaping)
|
// The debug representation for the backslash are two backslashes (escaping)
|
||||||
let $value = std::format!("{:#?}", $value).replace("\\\\", "/");
|
let $value = std::format!("{:#?}", $value).replace("\\\\", "/");
|
||||||
// `insta::assert_snapshot` uses the debug representation of the string, which would
|
insta::assert_snapshot!($value);
|
||||||
// be a single line containing `\n`
|
|
||||||
insta::assert_display_snapshot!($value);
|
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue