| blib/lib/Thrift/IDL/Type/Base.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 10 | 10 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 0 | 1 | 0.0 |
| total | 14 | 15 | 93.3 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Thrift::IDL::Type::Base; | ||||||
| 2 | |||||||
| 3 | =head1 NAME | ||||||
| 4 | |||||||
| 5 | Thrift::IDL::Type::Base | ||||||
| 6 | |||||||
| 7 | =head1 DESCRIPTION | ||||||
| 8 | |||||||
| 9 | Inherits from L |
||||||
| 10 | |||||||
| 11 | =cut | ||||||
| 12 | |||||||
| 13 | 6 | 6 | 35 | use strict; | |||
| 6 | 11 | ||||||
| 6 | 200 | ||||||
| 14 | 6 | 6 | 35 | use warnings; | |||
| 6 | 10 | ||||||
| 6 | 244 | ||||||
| 15 | 6 | 6 | 33 | use base qw(Thrift::IDL::Type); | |||
| 6 | 10 | ||||||
| 6 | 750 | ||||||
| 16 | __PACKAGE__->mk_accessors(qw(name)); | ||||||
| 17 | |||||||
| 18 | =head1 METHODS | ||||||
| 19 | |||||||
| 20 | =head2 name | ||||||
| 21 | |||||||
| 22 | Scalar accessor | ||||||
| 23 | |||||||
| 24 | =cut | ||||||
| 25 | |||||||
| 26 | sub to_str { | ||||||
| 27 | 58 | 58 | 0 | 197 | return $_[0]->name; | ||
| 28 | } | ||||||
| 29 | |||||||
| 30 | 1; |