Curie/ViewModel/ViewManager/Role/Zoom.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 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::ViewModel::ViewManager::Role::Zoom;
3 # ABSTRACT: A role for zoom
4 $Renard::Curie::ViewModel::ViewManager::Role::Zoom::VERSION = '0.005';
5 use Moo::Role;
6  
7 use Renard::Incunabula::Document::Types qw(ZoomLevel);
8 use Renard::Curie::Model::ViewOptions::Zoom::Percentage;
9  
10 method set_zoom_level( (ZoomLevel) $zoom_level ) {
11 my $zoom_option = Renard::Curie::Model::ViewOptions::Zoom::Percentage->new(
12 zoom_level => $zoom_level,
13 );
14 my $view_options = $self->view_options->cset(
15 zoom_options => $zoom_option
16 );
17 $self->view_options( $view_options );
18 }
19  
20 1;
21  
22 __END__