| 1 |
package FFI::Probe::Runner::Result; |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use 5.008004; |
| 6 |
|
| 7 |
# ABSTRACT: The results from a probe run. |
| 8 |
our $VERSION = '2.12'; # VERSION |
| 9 |
|
| 10 |
|
| 11 |
sub new |
| 12 |
{ |
| 13 |
my($class, %args) = @_; |
| 14 |
my $self = bless \%args, $class; |
| 15 |
$self; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
sub stdout { shift->{stdout} } |
| 20 |
sub stderr { shift->{stderr} } |
| 21 |
sub rv { shift->{rv} } |
| 22 |
sub signal { shift->{signal} } |
| 23 |
|
| 24 |
|
| 25 |
sub pass |
| 26 |
{ |
| 27 |
my($self) = @_; |
| 28 |
$self->rv == 0 && $self->signal == 0; |
| 29 |
} |
| 30 |
|
| 31 |
1; |
| 32 |
|
| 33 |
__END__ |
| 34 |
|
| 35 |
=pod |
| 36 |
|
| 37 |
=encoding UTF-8 |
| 38 |
|
| 39 |
=head1 NAME |
| 40 |
|
| 41 |
FFI::Probe::Runner::Result - The results from a probe run. |
| 42 |
|
| 43 |
=head1 VERSION |
| 44 |
|
| 45 |
version 2.12 |
| 46 |
|
| 47 |
=head1 SYNOPSIS |
| 48 |
|
| 49 |
=head1 DESCRIPTION |
| 50 |
|
| 51 |
=head1 CONSTRUCTOR |
| 52 |
|
| 53 |
=head2 new |
| 54 |
|
| 55 |
my $result = FFI::Probe::Runner::Result->new(%args); |
| 56 |
|
| 57 |
Creates a new instance of the class. |
| 58 |
|
| 59 |
=head1 METHODS |
| 60 |
|
| 61 |
=head2 stdout |
| 62 |
|
| 63 |
my $stdout = $result->stdout; |
| 64 |
|
| 65 |
=head2 stderr |
| 66 |
|
| 67 |
my $stderr = $result->stderr; |
| 68 |
|
| 69 |
=head2 rv |
| 70 |
|
| 71 |
my $rv = $result->rv; |
| 72 |
|
| 73 |
=head2 signal |
| 74 |
|
| 75 |
my $signal = $result->signal; |
| 76 |
|
| 77 |
=head2 pass |
| 78 |
|
| 79 |
my $pass = $result->pass; |
| 80 |
|
| 81 |
=head1 AUTHOR |
| 82 |
|
| 83 |
Author: Graham Ollis E<lt>[email protected]<gt> |
| 84 |
|
| 85 |
Contributors: |
| 86 |
|
| 87 |
Bakkiaraj Murugesan (bakkiaraj) |
| 88 |
|
| 89 |
Dylan Cali (calid) |
| 90 |
|
| 91 |
pipcet |
| 92 |
|
| 93 |
Zaki Mughal (zmughal) |
| 94 |
|
| 95 |
Fitz Elliott (felliott) |
| 96 |
|
| 97 |
Vickenty Fesunov (vyf) |
| 98 |
|
| 99 |
Gregor Herrmann (gregoa) |
| 100 |
|
| 101 |
Shlomi Fish (shlomif) |
| 102 |
|
| 103 |
Damyan Ivanov |
| 104 |
|
| 105 |
Ilya Pavlov (Ilya33) |
| 106 |
|
| 107 |
Petr Písař (ppisar) |
| 108 |
|
| 109 |
Mohammad S Anwar (MANWAR) |
| 110 |
|
| 111 |
Håkon Hægland (hakonhagland, HAKONH) |
| 112 |
|
| 113 |
Meredith (merrilymeredith, MHOWARD) |
| 114 |
|
| 115 |
Diab Jerius (DJERIUS) |
| 116 |
|
| 117 |
Eric Brine (IKEGAMI) |
| 118 |
|
| 119 |
szTheory |
| 120 |
|
| 121 |
José Joaquín Atria (JJATRIA) |
| 122 |
|
| 123 |
Pete Houston (openstrike, HOUSTON) |
| 124 |
|
| 125 |
Lukas Mai (MAUKE) |
| 126 |
|
| 127 |
=head1 COPYRIGHT AND LICENSE |
| 128 |
|
| 129 |
This software is copyright (c) 2015-2022 by Graham Ollis. |
| 130 |
|
| 131 |
This is free software; you can redistribute it and/or modify it under |
| 132 |
the same terms as the Perl 5 programming language system itself. |
| 133 |
|
| 134 |
=cut |