blib/lib/Search/Fulltext/TestSupport.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Search::Fulltext::TestSupport; | ||||||
2 | 2 | 2 | 1198 | use strict; | |||
2 | 3 | ||||||
2 | 59 | ||||||
3 | 2 | 2 | 11 | use warnings; | |||
2 | 5 | ||||||
2 | 59 | ||||||
4 | 2 | 2 | 10 | use utf8; | |||
2 | 3 | ||||||
2 | 23 | ||||||
5 | |||||||
6 | 2 | 2 | 2512 | use File::Temp; | |||
2 | 50463 | ||||||
2 | 298 | ||||||
7 | |||||||
8 | sub make_tmp_file { | ||||||
9 | 3 | 3 | 0 | 627 | File::Temp->new( | ||
10 | TEMPLATE => 'Search-Fulltext-SQLite-XXXXXX', | ||||||
11 | DIR => File::Temp::tempdir(CLEANUP => 1), | ||||||
12 | SUFFIX => '.db', | ||||||
13 | EXLOCK => 0, | ||||||
14 | UNLINK => 1, | ||||||
15 | ); | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; |