1 package Test2::Event::TAP::Version;
5 our $VERSION = '1.302140';
9 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
10 use Test2::Util::HashBase qw/version/;
14 defined $self->{+VERSION} or croak "'version' is a required attribute";
17 sub summary { 'TAP version ' . $_[0]->{+VERSION} }
22 my $out = $self->common_facet_data;
24 $out->{about}->{details} = $self->summary;
26 push @{$out->{info}} => {
29 details => $self->summary,
45 Test2::Event::TAP::Version - Event for TAP version.
49 This event is used if a TAP formatter wishes to set a version.
53 use Test2::API qw/context/;
54 use Test2::Event::Encoding;
57 my $event = $ctx->send_event('TAP::Version', version => 42);
61 Inherits from L<Test2::Event>. Also defines:
65 =item $version = $e->version
67 The TAP version being parsed.
73 The source code repository for Test2 can be found at
74 F<http://github.com/Test-More/test-more/>.
80 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
88 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
94 Copyright 2018 Chad Granum E<lt>exodist@cpan.orgE<gt>.
96 This program is free software; you can redistribute it and/or
97 modify it under the same terms as Perl itself.
99 See F<http://dev.perl.org/licenses/>