1 package Test2::EventFacet::Meta;
5 our $VERSION = '1.302181';
7 BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
8 use vars qw/$AUTOLOAD/;
12 no warnings 'redefine';
13 sub set_details { $_[0]->{'set_details'} }
20 my $existing = $self->SUPER::can($name);
21 return $existing if $existing;
23 # Only vivify when called on an instance, do not vivify for a class. There
24 # are a lot of magic class methods used in things like serialization (or
25 # the forks.pm module) which cause problems when vivified.
26 return undef unless ref($self);
28 my $sub = sub { $_[0]->{$name} };
40 my $sub = $_[0]->can($name);
54 Test2::EventFacet::Meta - Facet for meta-data
58 This facet can contain any random meta-data that has been attached to the
61 =head1 METHODS AND FIELDS
63 Any/all fields and accessors are autovivified into existence. There is no way
64 to know what metadata may be added, so any is allowed.
68 =item $anything = $meta->{anything}
70 =item $anything = $meta->anything()
76 The source code repository for Test2 can be found at
77 F<http://github.com/Test-More/test-more/>.
83 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
91 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
97 Copyright 2020 Chad Granum E<lt>exodist@cpan.orgE<gt>.
99 This program is free software; you can redistribute it and/or
100 modify it under the same terms as Perl itself.
102 See F<http://dev.perl.org/licenses/>