| 1 | package OPM::Maker::Command::dbtest; | ||||||||||
| 2 | 17 | $OPM::Maker::Command::dbtest::VERSION = '1.17'; | |||||||||
| 3 | # ABSTRACT: Test db definitions in .sopm files | ||||||||||
| 4 | |||||||||||
| 5 | 17 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 17 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 17 | ▶ | use OPM::Maker -command; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 17 | ▶ | use OPM::Maker::Utils qw(check_args_sopm); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | sub abstract { | ||||||||
|
Subroutine
abstract: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 13 | 1 | return "Check if DatabaseInstall and DatabaseUninstall sections in the .sopm are correct"; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | sub usage_desc { | ||||||||
|
Subroutine
usage_desc: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 17 | 1 | return "opmbuild dbtest <path_to_sopm>"; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 8 | ▶ | sub validate_args { | ||||||||
|
Subroutine
validate_args: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 8 | my ($self, $opt, $args) = @_; | |||||||||
| 22 | |||||||||||
| 23 | 8 | my $sopm = check_args_sopm( $args ); | |||||||||
| 24 | |||||||||||
| 25 | 8 | ▶ | $self->usage_error( 'need path to .sopm' ) if | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | !$sopm; | ||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 1 | ▶ | sub execute { | ||||||||
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 30 | 1 | my ($self, $opt, $args) = @_; | |||||||||
| 31 | |||||||||||
| 32 | 1 | die "not implemented yet"; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 17 | 1; | |||||||||
| 36 | |||||||||||
| 37 | __END__ | ||||||||||