Curie/Component/MainWindow/Role/Outline.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Renard::Incunabula::Common::Setup;
2 package Renard::Curie::Component::MainWindow::Role::Outline;
3 # ABSTRACT: Role for outline
4 $Renard::Curie::Component::MainWindow::Role::Outline::VERSION = '0.005';
5 use Moo::Role;
6 use Renard::Curie::Component::Outline;
7 use Renard::Incunabula::Common::Types qw(InstanceOf);
8 use Renard::Incunabula::Document::Types qw(DocumentModel);
9  
10 use Glib 'TRUE', 'FALSE';
11  
12 requires 'content_box';
13  
14 has outline => (
15 is => 'ro',
16 required => 1,
17 isa => InstanceOf['Renard::Curie::Component::Outline'],
18 );
19  
20 after setup_window => method() {
21 $self->content_box->pack_start( $self->outline , FALSE, TRUE, 0 );
22 };
23  
24 after open_document => method( (DocumentModel) $doc ) {
25 $self->outline->update( $doc );
26 };
27  
28 1;
29  
30 __END__