| blib/lib/Thrift/IDL/Type/Custom.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::Custom; | ||||||
| 2 | |||||||
| 3 | =head1 NAME | ||||||
| 4 | |||||||
| 5 | Thrift::IDL::Type::Custom | ||||||
| 6 | |||||||
| 7 | =head1 DESCRIPTION | ||||||
| 8 | |||||||
| 9 | Inherits from L |
||||||
| 10 | |||||||
| 11 | =cut | ||||||
| 12 | |||||||
| 13 | 6 | 6 | 35 | use strict; | |||
| 6 | 12 | ||||||
| 6 | 194 | ||||||
| 14 | 6 | 6 | 33 | use warnings; | |||
| 6 | 14 | ||||||
| 6 | 193 | ||||||
| 15 | 6 | 6 | 33 | use base qw(Thrift::IDL::Type); | |||
| 6 | 14 | ||||||
| 6 | 1171 | ||||||
| 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 | 28 | 28 | 0 | 81 | return '"' . $_[0]->name .'"'; | ||
| 28 | } | ||||||
| 29 | |||||||
| 30 | 1; |