MCPcopy Create free account
hub / github.com/archlinux/alpm / create_mtreev2_from_input

Function create_mtreev2_from_input

alpm-mtree/tests/create.rs:77–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75/// Creates an .MTREE file (as ALPM-MTREEv2) and validates it.
76#[rstest]
77fn create_mtreev2_from_input() -> TestResult {
78 init_logger()?;
79
80 let test_dir = TempDir::new()?;
81
82 create_test_files(test_dir.as_ref())?;
83
84 // Create .MTREE file (as ALPM-MTREEv2).
85 let mtree_file = create_mtree_v2_from_input_dir(test_dir.as_ref())?;
86
87 Mtree::from_file_with_schema(
88 mtree_file,
89 Some(MtreeSchema::V2(SchemaVersion::new(
90 alpm_types::semver_version::Version::new(2, 0, 0),
91 ))),
92 )?;
93
94 Ok(())
95}

Callers

nothing calls this directly

Calls 4

create_test_filesFunction · 0.85
init_loggerFunction · 0.70
as_refMethod · 0.45

Tested by

no test coverage detected