lib/PXML/Serialize/t.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/PXML/HTML5.pm ↑ Summary meta/FunctionalPerl/TailExpand.pm »
1 #
2 # Copyright (c) 2013-2015 Christian Jaeger, copying@christianjaeger.ch
3 #
4 # This is free software, offered under either the same terms as perl 5
5 # or the terms of the Artistic License version 2 or the terms of the
6 # MIT License (Expat version). See the file COPYING.md that came
7 # bundled with this file.
8 #
9  
10 =head1 NAME
11  
12 PXML::Serialize::t -- tests for PXML::Serialize
13  
14 =head1 SYNOPSIS
15  
16 =head1 DESCRIPTION
17  
18 # is tested by `t/require_and_run_tests`
19  
20 =head1 NOTE
21  
22 This is alpha software! Read the status section in the package README
23 or on the L<website|http://functional-perl.org/>.
24  
25 =cut
26  
27 package PXML::Serialize::t;
28  
29 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use warnings FATAL => 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 1 ▶use Chj::TEST;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 1 ▶use PXML::Serialize qw(pxml_print_fragment_fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
35 1 ▶use PXML::XHTML ":all";
Subroutine BEGIN: called CC=1 SCAR=0.0
36 1 ▶use PXML qw(pxmlflush);
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 1 ▶TEST_STDOUT { pxml_print_fragment_fast ["abc", P(2)], *STDOUT }
Subroutine __ANON__: called CC=1 SCAR=0.0
39 1 'abc<p>2</p>';
40 1 ▶TEST_STDOUT { pxml_print_fragment_fast ["abc"], *STDOUT }
Subroutine __ANON__: called CC=1 SCAR=0.0
41 1 'abc';
42  
43 1 ▶TEST_STDOUT {
Subroutine __ANON__: called CC=1 SCAR=0.0
44 pxml_print_fragment_fast P({ foo => ["a", ["b", pxmlflush, "c"], "d"] },
45 "abc"), *STDOUT{IO}
46 1 }
47 1 '<p foo="abcd">abc</p>';
48  
49 1 1
« lib/PXML/HTML5.pm ↑ Summary meta/FunctionalPerl/TailExpand.pm »