Eve/ItemTestBase.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod 100% 4 / 4 totaltotal 100% 39 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Eve/ItemEntryTestBase.pm ↑ Summary Eve/PgSqlType/Array.pm »
1 # -*- mode: Perl; -*-
2 package Eve::ItemTestBase;
3  
4 3 ▶use parent qw(Eve::Test);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Test::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 Eve::ItemTestBase->SKIP_CLASS(1);
13  
14 =head1 NAME
15  
16 B<Eve::ItemTestBase> - a base class for all item classes.
17  
18 =head1 SYNOPSIS
19  
20 package SomeItemTest;
21  
22 use parent qw(Eve::ItemTestBase);
23  
24 # put your item test content here
25  
26 =head1 DESCRIPTION
27  
28 B<Eve::ItemTestBase> is the class that provides test case setup and some
29 mandatory tests required to pass for all item classes.
30  
31 =head1 METHODS
32  
33 =head2 B<get_argument_list()>
34  
35 Returns test arguments for items, can be overridden to add inheritable
36 properties.
37  
38 =cut
39  
40 6 ▶sub get_argument_list {
Subroutine get_argument_list: called CC=1 SCAR=0.0
Pod documented
41 6 return {};
42 }
43  
44 =head2 B<test_init()>
45  
46 Performs initialization tests.
47  
48 =cut
49  
50 2 ▶sub test_init {}
Subroutine test_init: called CC=1 SCAR=0.0
Pod documented
51  
52 =head2 B<test_constants>
53  
54 Performs class constant tests.
55  
56 =cut
57  
58 2 ▶sub test_constants {}
Subroutine test_constants: called CC=1 SCAR=0.0
Pod documented
59  
60 =head2 B<test_eq>
61  
62 Performs equality method implementation tests.
63  
64 =cut
65  
66 2 ▶sub test_eq : Test(1) {
Subroutine test_eq: called CC=1 SCAR=0.0
Pod documented
67 2 my $self = shift;
68  
69 2 ▶ throws_ok(sub { $self->{'item'}->eq() }, 'Eve::Error::NotImplemented');
Subroutine __ANON__: called CC=1 SCAR=0.0
70 3 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
71  
72 =head1 SEE ALSO
73  
74 =over 4
75  
76 =item L<Eve::Test>
77  
78 =item L<Test::Class>
79  
80 =back
81  
82 =head1 LICENSE AND COPYRIGHT
83  
84 Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev.
85  
86 This program is free software; you can redistribute it and/or modify it
87 under the terms of either: the GNU General Public License as published
88 by the Free Software Foundation; or the Artistic License.
89  
90 See http://dev.perl.org/licenses/ for more information.
91  
92 =head1 AUTHOR
93  
94 =over 4
95  
96 =item L<Sergey Konoplev|mailto:gray.ru@gmail.com>
97  
98 =item L<Igor Zinovyev|mailto:zinigor@gmail.com>
99  
100 =back
101  
102 =cut
103  
104 3 1;
« Eve/ItemEntryTestBase.pm ↑ Summary Eve/PgSqlType/Array.pm »