App-Actions

 view release on metacpan or  search on metacpan

lib/App/Actions/Schema/Invalid.pm  view on Meta::CPAN

# either "is it an Invalid?" or "is it the error schema.invalid?".  It reports
# a document rather than a place in the code, so it has no location, and the
# message is the whole text, which keeps message and stringification equal.
use parent 'App::Actions::Error';

our $VERSION = '0.002.1';

sub new {
	my ($class, $message) = @_;

	return $class->SUPER::new(code => 'schema.invalid', message => $message, location => '');
}

1;

__END__

=encoding utf-8

=head1 NAME

t/unit.t  view on Meta::CPAN

# A Docker client that receives a signal as the run creates a job's
# network, as a run interrupted at the keyboard would.
{
	package Local::SignalDocker;
	our @ISA = ('App::Actions::Docker');

	sub network_create {
		my ($self, @args) = @_;

		kill $self->{test_signal}, $$;
		return $self->SUPER::network_create(@args);
	}
}

subtest 'App::Actions::Runner' => sub {
	# A project holding one workflow, and a runner for it on the fake daemon.
	my $project = sub {
		my ($yaml) = @_;
		my $dir = tempdir(CLEANUP => 1);
		my $workflows = File::Spec->catdir($dir, '.github', 'workflows');
		make_path($workflows);



( run in 1.606 second using v1.01-cache-2.11-cpan-4e491c91c6e )