Mildew/Backend/Gtk.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use v5.10;
2 use MooseX::Declare;
3 use Mildew::SSA;
4 use Mildew::Types;
5 class Mildew::Backend::Gtk with Mildew::Backend {
6 has format=>(is=>'ro');
7 method compile($ast,$output) {
8 local $Mildew::no_setr = 1;
9 require Gtk2;
10 Gtk2->init;
11 use lib '/home/pawel/Forest-Gtk2/lib';
12 require Forest::Gtk2;
13 my $tree_view = Forest::Gtk2::tree_to_tree_view(Mildew::SSA::to_ssa($ast->simplified,{
14 '$scope' => Mildew::Type::Scope->new(outer=> $Mildew::LexicalPreludeType)
15 })->forest);
16 my $window = Gtk2::Window->new('toplevel');
17 $window->add($tree_view);
18 $window->show_all;
19 Gtk2->main;
20 }
21 }
22 __END__