File: | t/Barcodes_PrinterConfig.t |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | time | code |
---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | |||||
2 | # | |||||
3 | # This Koha test module is a stub! | |||||
4 | # Add more tests here!!! | |||||
5 | ||||||
6 | 1 1 1 | 1.33283517899588e+15 1 41 | use strict; | |||
7 | 1 1 1 | 4 1 35 | use warnings; | |||
8 | ||||||
9 | 1 1 1 | 279 23550 13 | use Test::More tests => 6; | |||
10 | ||||||
11 | BEGIN { | |||||
12 | 1 | 1549 | use_ok('C4::Barcodes::PrinterConfig'); | |||
13 | } | |||||
14 | ||||||
15 | 1 | 1521259 | is(C4::Barcodes::PrinterConfig::setPositionsForY(), "0", "testing setPositionsForY returns'0' when given no arguments"); | |||
16 | 1 | 1716 | is(C4::Barcodes::PrinterConfig::setPositionsForX(), "0", "testing setPositionsForX returns'0' when given no arguments"); | |||
17 | ||||||
18 | 1 | 668 | is(C4::Barcodes::PrinterConfig::setPositionsForY(undef, undef, 5), "5", "testing setPositionsForY returns'5' when given (undef, undef, 5)"); | |||
19 | 1 | 554 | is(C4::Barcodes::PrinterConfig::setPositionsForX(undef, undef, 5), "5", "testing setPositionsForX returns'5' when given (undef, undef, 5)"); | |||
20 | ||||||
21 | ||||||
22 | 1 | 500 | is(C4::Barcodes::PrinterConfig::labelsPage(), "0", "testing labelsPage returns'0' when given no arguments"); |