mirror of
https://github.com/coreos/chunkah.git
synced 2026-11-03 21:49:44 -09:00
tree: adapt to ocidir 0.8 OciRead trait extraction
ocidir 0.8 moved read_blob, read_index, read_json_blob, and other read-only methods from inherent methods on OciDir to a new OciRead trait. Import OciRead in test modules that call these methods. Assisted-by: Pi (Claude Opus 4.6)
This commit is contained in:
parent
7d318954d1
commit
e9ea343de3
2 changed files with 3 additions and 0 deletions
|
|
@ -607,6 +607,8 @@ fn pack_components(
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
use ocidir::OciRead;
|
||||||
|
|
||||||
const CONFIG_FIXTURE: &str = include_str!("../tests/fixtures/empty.image-config.json");
|
const CONFIG_FIXTURE: &str = include_str!("../tests/fixtures/empty.image-config.json");
|
||||||
|
|
||||||
fn scan_tempdir(rootfs: &Dir) -> FileMap {
|
fn scan_tempdir(rootfs: &Dir) -> FileMap {
|
||||||
|
|
|
||||||
|
|
@ -330,6 +330,7 @@ mod tests {
|
||||||
use cap_std_ext::cap_std::fs::PermissionsExt;
|
use cap_std_ext::cap_std::fs::PermissionsExt;
|
||||||
use cap_std_ext::dirext::CapStdExtDirExt;
|
use cap_std_ext::dirext::CapStdExtDirExt;
|
||||||
use maplit::btreeset;
|
use maplit::btreeset;
|
||||||
|
use ocidir::OciRead;
|
||||||
use std::collections::BTreeSet;
|
use std::collections::BTreeSet;
|
||||||
|
|
||||||
use crate::components::FileMap;
|
use crate::components::FileMap;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue