1 package Test2::EventFacet;
5 our $VERSION = '1.302198';
7 use Test2::Util::HashBase qw/-details/;
10 my $SUBLEN = length(__PACKAGE__ . '::');
12 my $key = ref($_[0]) || $_[0];
13 substr($key, 0, $SUBLEN, '');
21 my $type = ref($self);
22 return bless {%$self, @_}, $type;
35 Test2::EventFacet - Base class for all event facets.
39 Base class for all event facets.
45 =item $key = $facet_class->facet_key()
47 This will return the key for the facet in the facet data hash.
49 =item $bool = $facet_class->is_list()
51 This will return true if the facet should be in a list instead of a single
54 =item $clone = $facet->clone()
56 =item $clone = $facet->clone(%replace)
58 This will make a shallow clone of the facet. You may specify fields to override
65 The source code repository for Test2 can be found at
66 F<http://github.com/Test-More/test-more/>.
72 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
80 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
86 Copyright 2020 Chad Granum E<lt>exodist@cpan.orgE<gt>.
88 This program is free software; you can redistribute it and/or
89 modify it under the same terms as Perl itself.
91 See F<http://dev.perl.org/licenses/>