Chemistry-File-VRML-0.10/t/vrml.t

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 97.0% 33 / 34 CC 1 SCAR 0.0
CC
1
Cov
96%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Chemistry-Mol-0.35/t/change_id.t ↑ Summary Chemistry-Mol-0.35/t/Atom.t »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Chemistry::File::VRML;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Chemistry::File::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 plan tests => 1;
8  
9 1 my $mol = Chemistry::Mol->read('test.dump', format => 'dumper');
10 1 my $got = $mol->print(
11 format => 'vrml',
12 center => 1,
13 style => 'ballAndWire',
14 color => 'byAtom',
15 );
16  
17 1 ▶open F, "< test.wrl" or die;
Branch: 1 branch
BranchTrueFalseTotal
open F, "< test.wrl" or die 1 0 1
18 1 my $expected = do { local $/; <F> };
19  
20 1 ok ($got eq $expected, "test.dump -> test.wrl");
« Chemistry-Mol-0.35/t/change_id.t ↑ Summary Chemistry-Mol-0.35/t/Atom.t »