File: 13_api.t

package info (click to toggle)
libtest-inline-perl 2.213-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 456 kB
  • ctags: 265
  • sloc: perl: 3,241; makefile: 2
file content (112 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/perl

# Formal testing for Test::Inline.
# Tests loading and API of classes.

use strict;
BEGIN {
	$|  = 1;
	$^W = 1;
}

# Load the class to test
use Test::Inline;

# Execute the API test
use File::Spec::Functions ':ALL';
use Test::More 'tests' => 103;
use Test::ClassAPI;
Test::ClassAPI->execute('complete', 'collisions');

1;

__DATA__

Algorithm::Dependency::Source=interface
Algorithm::Dependency::Item=interface

[Test::Inline]
Algorithm::Dependency::Source=isa
new=method
exception=method
InputHandler=method
ExtractHandler=method
OutputHandler=method
ContentHandler=method
add=method
add_class=method
add_all=method
classes=method
class=method
filenames=method
schedule=method
manifest=method
save=method

[Test::Inline::Section]
Algorithm::Dependency::Item=isa
parse=method
new=method
begin=method
setup=method
example=method
context=method
name=method
after=method
classes=method
tests=method
anonymous=method
content=method

[Test::Inline::Script]
Algorithm::Dependency::Source=isa
Algorithm::Dependency::Item=isa
new=method
class=method
filename=method
config=method
setup=method
sections=method
sorted=method
merged_content=method
tests=method

[Test::Inline::Extract]
new=method
elements=method

[Test::Inline::IO::File]
new=method
path=method
readonly=method
exists_file=method
exists_dir=method
read=method
write=method
class_file=method
find=method

[Test::Inline::Content]
new=method
process=method

[Test::Inline::Content::Legacy]
Test::Inline::Content=isa
coderef=method

[Test::Inline::Content::Default]
Test::Inline::Content=isa

[Test::Inline::Content::Simple]
Test::Inline::Content=isa
template=method

[Algorithm::Dependency::Source]
load=method
item=method
items=method
missing_dependencies=method

[Algorithm::Dependency::Item]
id=method
depends=method