1use strict; 2use warnings; 3 4use Test2::Tools::Tiny; 5 6use ok 'Test2::EventFacet::Parent'; 7my $CLASS = 'Test2::EventFacet::Parent'; 8 9my $one = $CLASS->new(details => 'foo', hid => 'abc', children => [], buffered => 1); 10 11is($one->details, "foo", "Got details"); 12is($one->hid, 'abc', "Got 'hid' value"); 13is($one->buffered, 1, "Got 'buffered' value"); 14is_deeply($one->children, [], "Got 'children' value"); 15 16is_deeply($one->clone, $one, "Cloning."); 17isnt($one->clone, $one, "Clone is a new ref"); 18 19ok(!$CLASS->is_list, "is not a list"); 20is($CLASS->facet_key, 'parent', "Got key"); 21 22done_testing; 23