blib/lib/auto/share/dist/Amon2/flavor/Basic/t/Util.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 14 SCAR -
1 %% cascade "Minimum/t/Util.pm"
2  
3 %% after export -> {
4 slurp
5 %% }
6  
7 %% after functions -> {
8 sub slurp {
9 my $fname = shift;
10 open my $fh, '<:encoding(UTF-8)', $fname or die "$fname: $!";
11 scalar do { local $/; <$fh> };
12 }
13  
14 # initialize database
15 use <% $module %>;
16 {
17 unlink 'db/test.db' if -f 'db/test.db';
18 system("sqlite3 db/test.db < sql/sqlite.sql");
19 }
20 %% }