line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JS::Test::Base; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
24675
|
use 5.008; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
115
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
1; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=encoding utf8 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Test.Base - Data Driven Testing Base Class |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
var t = new Test.Base(); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
var filters = { |
20
|
|
|
|
|
|
|
input: 'upper_case' |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
t.plan(1); |
24
|
|
|
|
|
|
|
t.filters(filters); |
25
|
|
|
|
|
|
|
t.run_is('input', 'output'); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
function upper_case(string) { |
28
|
|
|
|
|
|
|
return string.toUpperCase(); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
/* Test |
32
|
|
|
|
|
|
|
=== Test Multiline Upper Case |
33
|
|
|
|
|
|
|
--- input |
34
|
|
|
|
|
|
|
foo |
35
|
|
|
|
|
|
|
bar |
36
|
|
|
|
|
|
|
baz |
37
|
|
|
|
|
|
|
--- output |
38
|
|
|
|
|
|
|
FOO |
39
|
|
|
|
|
|
|
BAR |
40
|
|
|
|
|
|
|
BAZ |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
*/ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Test.Base is a Javascript port of Perl's Test::Base. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
For a feel of how Test.Base works, see Perl's Test::Base documenation |
49
|
|
|
|
|
|
|
(for now). |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
To use Test.Base in a project, follow the instructions in sample/README. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Ingy döt Net |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Copyright (c) 2006, 2008. Ingy döt Net. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
62
|
|
|
|
|
|
|
under the same terms as Perl itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
See L |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |