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

Function schema_fixture

alpm-db/tests/desc_cli.rs:161–166  ·  view source on GitHub ↗

Convenience fixture helper

(schema: &DbDescSchema)

Source from the content-addressed store, hash-verified

159
160/// Convenience fixture helper
161fn schema_fixture(schema: &DbDescSchema) -> (&'static str, &'static str) {
162 match schema {
163 DbDescSchema::V1(_) => ("v1", VALID_DESC_V1),
164 DbDescSchema::V2(_) => ("v2", VALID_DESC_V2),
165 }
166}
167
168mod validate {
169

Callers 5

createFunction · 0.70
size_zero_is_omittedFunction · 0.70
json_compactFunction · 0.70
json_prettyFunction · 0.70
display_round_tripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected