Convert-Pheno
view release on metacpan or search on metacpan
t/04-api-stream-omop.t view on Meta::CPAN
],
out_file => $tmp_file,
ohdsi_db => 1,
stream => 1,
max_lines_sql => 2700,
sep => "\t",
method => 'omop2bff',
);
SKIP: {
skip q{share/db/ohdsi.db is required for streaming CSV.gz OMOP test}, 1
unless has_ohdsi_db();
$convert->omop2bff;
is(
gunzip_file_content('t/omop2bff/out/individuals_csv.json.gz'),
gunzip_file_content($tmp_file),
'omop2bff stream CSV.gz matches reference output',
);
}
}
t/15-convertpheno-orchestration.t view on Meta::CPAN
my ( undef, $tmp_file ) = tempfile();
my $convert = Convert::Pheno->new(
{
method => 'omop2bff',
out_file => $tmp_file,
in_textfile => 0,
}
);
$convert->{omop_cli} = 1;
my $stream = Convert::Pheno::_dispatcher_open_stream_out($convert);
ok( $stream->{fh}, '_dispatcher_open_stream_out opens output file in streaming mode' );
close $stream->{fh};
}
{
my $convert = Convert::Pheno->new(
{
method => 'bff2pxf',
in_textfile => 0,
data => { inline => 1 },
}
( run in 0.567 second using v1.01-cache-2.11-cpan-140bd7fdf52 )