blib/lib/UR/Value/Boolean/View/Default/Text.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 SCAR 17.9
CC
2
Cov
0%
_generate_content
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 6.0
1 package UR::Value::Boolean::View::Default::Text;
2  
3 use strict;
4 use warnings;
5 require UR;
6 our $VERSION = "0.46"; # UR $VERSION;
7  
8 class UR::Value::Boolean::View::Default::Text {
9 is => 'UR::Object::View::Default::Text'
10 };
11  
12  
13 sub _generate_content {
14 my $self = shift;
15 my $subject = $self->subject();
16 return $subject && $subject->id ? "1" : "0";
17 }
18  
19 1;