jhshuai/moontestledger/wire does not have a README file
type CollectionSpecfn CollectionSpec::collect(self : CollectionSpec, inputs : ArrayView[CollectedXml], limits? : Limits) -> Evidence raise InputErrorfn CollectionSpec::collect_tar(self : CollectionSpec, data : Bytes, limits? : Limits, max_bytes? : Int) -> Evidence raise InputErrorfn CollectionSpec::collect_zip(self : CollectionSpec, data : Bytes, limits? : Limits, max_bytes? : Int) -> Evidence raise InputErrorfn CollectionSpec::new(plan : RunPlan, files : ArrayView[CollectionFile], deny_recovered? : Bool, limits? : Limits) -> CollectionSpec raise InputErrortest {
let reports : Array[@ledger.ExpectedReport] = [
{
id: "report",
environment: "linux",
shard: "all",
attempt: 1,
cases: [{ classname: "C", name: "a", }],
},
]
let plan = @ledger.RunPlan::new("run", "revision", reports)
let files : Array[@wire.CollectionFile] = [
{ id: "report", path: "job/results.xml", },
]
let spec = @wire.CollectionSpec::new(plan, files[:])
let absent : Array[@wire.CollectedXml] = []
inspect(spec.collect(absent[:]).exit_code(), content="3")
}type Evidencefn Evidence::check_integrity(self : Evidence, expected : IntegrityManifest, limits? : Limits) -> Unit raise InputErrorfn Evidence::tar_pack(self : Evidence, limits? : Limits, max_bytes? : Int) -> Bytes raise InputErrorfn Evidence::zip_pack(self : Evidence, limits? : Limits, max_bytes? : Int) -> Bytes raise InputErrorpub(all) struct IntegrityDocument {
binding : ReportBinding
sha256 : String
utf8_bytes : Int
} derive(Eq, Debug)type IntegrityManifesttype PackIndexpub(all) struct PlanChange {
kind : PlanChangeKind
report_id : String
key : CaseKey?
} derive(Eq, Debug)type PlanReviewfn PlanReview::approve(self : PlanReview, current : RunPlan, approval~ : String, limits? : Limits) -> RunPlan raise InputErrorfn encode_evidence(ledger : Ledger, deny_recovered? : Bool, limits? : Limits) -> String raise InputErrorfn prepare_retry(evidence : Evidence, reports : ArrayView[RetryReport], limits? : Limits) -> Evidence raise InputErrorfn review_plan(before : RunPlan, proposed : RunPlan, limits? : Limits) -> PlanReview raise InputErrorInstall
Download zipExplicit CI test-report inventory and retry reconciliation