File: 13_write_string.t

package info (click to toggle)
libcpan-meta-yaml-perl 0.012-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 384 kB
  • ctags: 76
  • sloc: perl: 1,300; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use warnings;
use lib 't/lib/';
use Test::More 0.99;
use TestUtils;
use TestBridge;

use CPAN::Meta::YAML ();

#--------------------------------------------------------------------------#
# Generally, write_string can be tested with .tml files in t/tml-local/*
#
# This file is for error tests or conditions that can't be easily tested
# via .tml
#--------------------------------------------------------------------------#

subtest 'write_string as class method' => sub {
    my $got = eval { CPAN::Meta::YAML->write_string };
    is( $@, '', "write_string lives" );
    is( $got, '', "returns empty string" );
};

done_testing;