File Coverage

lib/UR/Value/View/Default/Text.pm
Criterion Covered Total %
statement 14 14 100.0
branch 2 2 100.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package UR::Value::View::Default::Text;
2 3     3   113 use strict;
  3         4  
  3         79  
3 3     3   11 use warnings;
  3         5  
  3         66  
4 3     3   10 use UR;
  3         5  
  3         13  
5              
6             class UR::Value::View::Default::Text {
7             is => 'UR::Object::View::Default::Text',
8             };
9              
10             sub _generate_content {
11 92     92   103 my $self = shift;
12 92         228 my $subject = $self->subject;
13 92 100       221 return unless ($subject);
14 89         287 my $name = $subject->__display_name__;
15 89         207 return $name;
16             }
17              
18             1;