mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Add tests for hard and soft links (#12590)
This commit is contained in:
parent
27edadec29
commit
966563c79b
6 changed files with 604 additions and 108 deletions
|
@ -39,6 +39,8 @@ pub type Result<T> = std::io::Result<T>;
|
|||
/// Abstracting the system also enables tests to use a more efficient in-memory file system.
|
||||
pub trait System: Debug {
|
||||
/// Reads the metadata of the file or directory at `path`.
|
||||
///
|
||||
/// This function will traverse symbolic links to query information about the destination file.
|
||||
fn path_metadata(&self, path: &SystemPath) -> Result<Metadata>;
|
||||
|
||||
/// Reads the content of the file at `path` into a [`String`].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue