Debian Codegraph @

lib/TAP/Formatter/JUnit/Result.pm

raw
1 package TAP::Formatter::JUnit::Result;
2
3 use Moose;
4 use namespace::clean;
5
6 has 'time' => (
7 is => 'ro',
8 isa => 'Num',
9 required => 1,
10 );
11
12 has 'result' => (
13 is => 'ro',
14 isa => 'TAP::Parser::Result',
15 required => 1,
16 handles => [qw(
17 name
18 number
19 description
20 as_string
21 raw
22
23 is_test
24 is_plan
25 is_unplanned
26 is_ok
27
28 todo_passed
29 explanation
30 )],
31 );
32
33 1;
34
35 =head1 NAME
36
37 TAP::Formatter::JUnit::Result - Wrapper for a TAP result
38
39 =head1 DESCRIPTION
40
41 C<TAP::Formatter::JUnit::Result> is an internal class, used to wrap/augment
42 C<TAP::Parser::Result> objects with timing information.
43
44 B<NOT recommended for public consumption; internal use only.>
45
46 =head1 AUTHOR
47
48 Graham TerMarsch <[email protected]>
49
50 =head1 COPYRIGHT
51
52 Copyright 2011, Graham TerMarsch. All Rights Reserved.
53
54 This is free software; you can redistribute it and/or modify it under the same
55 terms as Perl itself.
56
57 =cut