| 1 | package File::KDBX::Dumper::Raw; | ||
| 2 | # ABSTRACT: A no-op dumper that dumps content as-is | ||
| 3 | |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use File::KDBX::Util qw(:class); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | extends 'File::KDBX::Dumper'; | |
| 11 | |||
| 12 | 1 | our $VERSION = '0.904'; # VERSION | |
| 13 | |||
| 14 | sub _dump { | ||
| 15 | 0 | ▶ | my $self = shift; |
|
Subroutine
_dump: not called CC=1 SCAR=6.9
| |||
| 16 | 0 | my $fh = shift; | |
| 17 | |||
| 18 | 0 | $self->_write_body($fh); | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | ▶ | sub _write_headers { '' } |
|
Subroutine
_write_headers: not called CC=1 SCAR=6.9
| |||
| 22 | |||
| 23 | sub _write_body { | ||
| 24 | 0 | ▶ | my $self = shift; |
|
Subroutine
_write_body: not called CC=1 SCAR=6.9
| |||
| 25 | 0 | my $fh = shift; | |
| 26 | |||
| 27 | 0 | $self->_write_inner_body($fh); | |
| 28 | } | ||
| 29 | |||
| 30 | sub _write_inner_body { | ||
| 31 | 0 | ▶ | my $self = shift; |
|
Subroutine
_write_inner_body: not called CC=1 SCAR=6.9
| |||
| 32 | 0 | my $fh = shift; | |
| 33 | |||
| 34 | 0 | $fh->print($self->kdbx->raw); | |
| 35 | } | ||
| 36 | |||
| 37 | 1 | 1; | |
| 38 | |||
| 39 | __END__ | ||