Class/Role/Meta/Class.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Class.pm ↑ Summary
1 #!/usr/bin/perl -c
2  
3 package Test::Builder::Mock::Class::Role::Meta::Class;
4  
5 =head1 NAME
6  
7 Test::Builder::Mock::Class::Role::Meta::Class - Metaclass for mock class
8  
9 =head1 DESCRIPTION
10  
11 This role provides an API for defining mock class.
12  
13 =cut
14  
15 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 our $VERSION = '0.0203';
21  
22 2 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24  
25 =head1 INHERITANCE
26  
27 =over 2
28  
29 =item *
30  
31 L<Test::Mock::Class::Role::Meta::Class>
32  
33 =back
34  
35 =cut
36  
37 2 with 'Test::Mock::Class::Role::Meta::Class';
38  
39  
40 2 ▶use Exception::Base (
Subroutine BEGIN: called CC=1 SCAR=0.0
41 2 '+ignore_package' => [__PACKAGE__],
42 2 );
43  
44  
45 =head1 ATTRIBUTES
46  
47 =over
48  
49 =item B<mock_base_object_role> : Str = "Test::Builder::Mock::Class::Role::Object"
50  
51 Base object role for mock class. The default is
52 L<Test::Builder::Mock::Class::Role::Object>.
53  
54 =cut
55  
56 2 has 'mock_base_object_role' => (
57 is => 'rw',
58 default => 'Test::Builder::Mock::Class::Role::Object',
59 );
60  
61  
62 2 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
63  
64  
65 2 1;
66  
67  
68 =back
69  
70 =begin umlwiki
71  
72 = Class Diagram =
73  
74 [ <<role>>
75 Test::Builder::Mock::Class::Role::Meta::Class
76 ------------------------------------------------------------------------------
77 +mock_base_object_role = "Test::Builder::Mock::Class::Role::Object"
78 ------------------------------------------------------------------------------
79 ]
80  
81 [Test::Builder::Mock::Class::Role::Meta::Class] ---|> [<<role>> Test::Mock::Class::Role::Meta::Class]
82  
83 =end umlwiki
84  
85 =head1 SEE ALSO
86  
87 L<Test::Mock::Class::Role::Meta::Class>, L<Test::Builder::Mock::Class>.
88  
89 =head1 BUGS
90  
91 The API is not stable yet and can be changed in future.
92  
93 =head1 AUTHOR
94  
95 Piotr Roszatycki <dexter@cpan.org>
96  
97 =head1 LICENSE
98  
99 Based on SimpleTest, an open source unit test framework for the PHP
100 programming language, created by Marcus Baker, Jason Sweat, Travis Swicegood,
101 Perrick Penet and Edward Z. Yang.
102  
103 Copyright (c) 2009, 2010 Piotr Roszatycki <dexter@cpan.org>.
104  
105 This program is free software; you can redistribute it and/or modify it
106 under GNU Lesser General Public License.
« Class.pm ↑ Summary