Mojolicious/Plugin/Sendgrid.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
register
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Mojolicious::Plugin::Sendgrid;
2 use Mojo::Base 'Mojolicious::Plugin';
3  
4 use Mojo::Sendgrid;
5  
6 sub register {
7 my ($self, $app, $conf) = @_;
8  
9 push @{$app->commands->namespaces}, 'Mojo::Sendgrid::Command';
10  
11 my $sendgrid = Mojo::Sendgrid->new({%{$app->config('sendgrid')||{}}, %{$conf||{}}}) or return;
12 $app->helper(sendgrid => sub {$sendgrid});
13 }
14  
15 1;
16 __END__