D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
doc
/
perl-Test-Simple
/
t
/
Test2
/
modules
/
EventFacet
/
Filename :
Control.t
back
Copy
use strict; use warnings; use Test2::Tools::Tiny; use ok 'Test2::EventFacet::Control'; my $CLASS = 'Test2::EventFacet::Control'; my $one = $CLASS->new(details => 'foo', global => 0, terminate => undef, halt => 0, has_callback => 1, encoding => 'utf8'); is($one->details, "foo", "Got details"); is($one->global, 0, "Got 'global' value"); is($one->terminate, undef, "Got 'terminate' value"); is($one->halt, 0, "Got 'halt' value"); is($one->has_callback, 1, "Got 'has_callback' value"); is($one->encoding, 'utf8', "Got 'utf8' value"); is_deeply($one->clone, $one, "Cloning."); isnt($one->clone, $one, "Clone is a new ref"); ok(!$CLASS->is_list, "is not a list"); is($CLASS->facet_key, 'control', "Got key"); done_testing;
Name
Size
Last Modified
Owner
Permissions
Actions
About.t
0.509
KB
March 30 2018 5:53:02
root
0644
Amnesty.t
0.5
KB
March 30 2018 5:53:02
root
0644
Assert.t
0.502
KB
March 30 2018 5:53:02
root
0644
Control.t
0.709
KB
March 30 2018 5:53:02
root
0644
Error.t
0.488
KB
March 30 2018 5:53:02
root
0644
Info.t
0.479
KB
March 30 2018 5:53:02
root
0644
Meta.t
0.645
KB
March 30 2018 5:53:02
root
0644
Parent.t
0.576
KB
March 30 2018 5:53:02
root
0644
Plan.t
0.54
KB
March 30 2018 5:53:02
root
0644
Trace.t
1.21
KB
March 30 2018 5:53:02
root
0644
2017 © D7net | D704T team