fix(config): implement test filesystem canonicalization

This commit is contained in:
Felipe Coury
2026-05-30 19:31:38 -03:00
parent d9e6828eba
commit d8db042f54

View File

@@ -14,6 +14,16 @@ struct TestFileSystem;
#[async_trait]
impl ExecutorFileSystem for TestFileSystem {
async fn canonicalize(
&self,
path: &AbsolutePathBuf,
_sandbox: Option<&FileSystemSandboxContext>,
) -> FileSystemResult<AbsolutePathBuf> {
let path = tokio::fs::canonicalize(path.as_path()).await?;
AbsolutePathBuf::try_from(path)
.map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err))
}
async fn read_file(
&self,
path: &AbsolutePathBuf,