File Coverage

t/Kamelon.t
Criterion Covered Total %
statement n/a
branch n/a
condition n/a
subroutine n/a
pod n/a
total n/a


line stmt bran cond sub pod time code
1             use strict;
2             use warnings;
3             use Data::Dumper;
4              
5             use Test::More tests => 5;
6             BEGIN { use_ok('Syntax::Kamelon') };
7              
8             my $folder = './t';
9             my $index = "$folder/indexrc";
10             unlink $index;
11              
12             my $yashe = Syntax::Kamelon->new(
13             xmlfolder => $folder,
14             indexfile => $index,
15             );
16             ok(defined $yashe, 'Can create Kamelon');
17              
18             ok($yashe->{INDEXER}->{INDEX}->{'Test'}->{'file'} eq 'test.xml', "Indexing\n");
19              
20             $yashe->Reset;
21              
22             $yashe->Syntax('Test');
23             ok($yashe->Syntax eq 'Test', 'Set a language');
24              
25             my $thl = $yashe->GetLexer('Test');
26             ok(defined $thl, 'Create a highlighter');
27             # use Data::Dumper;
28             # print Dumper $thl;
29              
30              
31             unlink $index;
32              
33