| File: | t/Scheduler.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.33283540665868e+15 8 25 | use strict; | |||
| 7 | 1 1 1 | 5 1 32 | use warnings; | |||
| 8 | ||||||
| 9 | 1 1 1 | 217 19672 46 | use Test::More tests => 6; | |||
| 10 | ||||||
| 11 | BEGIN { | |||||
| 12 | 1 | 1559 | use_ok('C4::Scheduler'); | |||
| 13 | } | |||||
| 14 | ||||||
| 15 | 1 | 338912 | ok(C4::Scheduler::get_jobs(), "testing get_jobs with no arguments"); | |||
| 16 | 1 | 3621 | ok(C4::Scheduler::get_at_jobs(), "testing get_at_jobs with no arguments"); | |||
| 17 | 1 | 3484 | is(C4::Scheduler::get_at_job(), "0", "testing get_at_job returns '0' when given no arguments"); | |||
| 18 | 1 | 16316 | is(C4::Scheduler::add_at_job(), "", "testing add_at_job with no arguments"); | |||
| 19 | 1 | 3696 | is(C4::Scheduler::remove_at_job(), undef , "testing remove_at_job returns undef when given no arguments"); | |||