1 # This functions transforms a CPAN::Testers::ParseReport::parse_single_report ()
2 # old nntp report into new hash structs
4 # my $hash = conf2conf (CPAN::Testers::ParseReport::parse_single_report ({
5 # id => $report }, $dumpvars, %Opt));
7 # For conversions, make sure that $dumpvars is true to get all data
9 # perl -Ilib bin/ctgetreports --cachedir=t/var --local --report=2044631 --dumpvars=.
15 foreach my $p (qw( conf env meta mod prereq )) {
16 %{$hsh{$p}} = map { $_ => delete $rpt->{"$p:$_"} }
17 grep s/^$p:// => keys %$rpt;
19 $rpt->{PerlMyConfig
} = {
21 osname
=> $hsh{conf
}{osname
},
29 $rpt->{TestEnvironment
} = $hsh{env
};
30 $rpt->{TestSummary
} = $hsh{meta
};
31 $rpt->{Prereqs
} = $hsh{prereq
},
32 $rpt->{InstalledModules
} = $hsh{mod
};