| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Storage::DBI::Mock; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Data::Storage::DBI::Mock::VERSION = '1.102720'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Base class for mock DBI storages | ||
| 10 | 1 | ▶ | use parent 'Data::Storage::Mock'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 0 | ▶ | sub die_on_connect { |
|
Subroutine
die_on_connect: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 13 | 0 | my $self = shift; | |
| 14 | |||
| 15 | # simulate the bare minimum of a ::DBH exception | ||
| 16 | 0 | throw Error::Hierarchy::Internal::DBI::DBH( | |
| 17 | error => "can't connect", | ||
| 18 | errstr => "can't connect", | ||
| 19 | err => 1, | ||
| 20 | ); | ||
| 21 | } | ||
| 22 | 1 | 1; | |
| 23 | |||
| 24 | |||
| 25 | __END__ | ||