File Coverage

blib/lib/Renard/Curie/Container/App.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod n/a
total 12 16 75.0


line stmt bran cond sub pod time code
1 1     1   546197 use Renard::Incunabula::Common::Setup;
  1         3  
  1         6  
2             package Renard::Curie::Container::App;
3             # ABSTRACT: A Bread::Board container for the application
4             $Renard::Curie::Container::App::VERSION = '0.003';
5 1     1   9947 use Moose;
  1         543354  
  1         7  
6 1     1   8520 use Bread::Board::Declare;
  1         1844859  
  1         15  
7              
8             # Subcomponents
9             has menu_bar => (
10             is => 'ro',
11             isa => 'Renard::Curie::Component::MenuBar',
12             infer => 1,
13             lifecycle => 'Singleton',
14             );
15              
16             has outline => (
17             is => 'ro',
18             isa => 'Renard::Curie::Component::Outline',
19             infer => 1,
20             lifecycle => 'Singleton',
21             );
22              
23             has log_window => (
24             is => 'ro',
25             isa => 'Renard::Curie::Component::LogWindow',
26             infer => 1,
27             lifecycle => 'Singleton',
28             );
29              
30             # Main component
31             has main_window => (
32             is => 'ro',
33             isa => 'Renard::Curie::Component::MainWindow',
34             dependencies => [qw(log_window outline menu_bar view_manager)],
35             lifecycle => 'Singleton',
36             );
37              
38             has view_manager => (
39             is => 'ro',
40             isa => 'Renard::Curie::ViewModel::ViewManager',
41             infer => 1,
42             lifecycle => 'Singleton',
43             );
44              
45             # App
46             has app => (
47             is => 'ro',
48             isa => 'Renard::Curie::App',
49             infer => 1,
50             lifecycle => 'Singleton',
51             );
52              
53 0     0     method _test_current_view() {
  0            
54 0           $self->view_manager->current_view;
55             }
56              
57             1;
58              
59             __END__
60              
61             =pod
62              
63             =encoding UTF-8
64              
65             =head1 NAME
66              
67             Renard::Curie::Container::App - A Bread::Board container for the application
68              
69             =head1 VERSION
70              
71             version 0.003
72              
73             =head1 EXTENDS
74              
75             =over 4
76              
77             =item * L<Moose::Meta::Class::__ANON__::SERIAL::32>
78              
79             =back
80              
81             =head1 AUTHOR
82              
83             Project Renard
84              
85             =head1 COPYRIGHT AND LICENSE
86              
87             This software is copyright (c) 2016 by Project Renard.
88              
89             This is free software; you can redistribute it and/or modify it under
90             the same terms as the Perl 5 programming language system itself.
91              
92             =cut