Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage for unimplemented methods #1894

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

perlpunk
Copy link
Contributor

Also fix subroutine signatures for some of the methods.

Related: https://progress.opensuse.org/issues/104499

Also fix subroutine signatures for some of the methods.

Related: https://progress.opensuse.org/issues/104499
@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #1894 (bcb7abe) into master (1c794e7) will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1894      +/-   ##
==========================================
+ Coverage   67.77%   67.94%   +0.17%     
==========================================
  Files          64       64              
  Lines        6957     6960       +3     
==========================================
+ Hits         4715     4729      +14     
+ Misses       2242     2231      -11     
Impacted Files Coverage Δ
backend/baseclass.pm 55.46% <100.00%> (+1.67%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c794e7...bcb7abe. Read the comment docs.

Copy link
Member

@kalikiana kalikiana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very nice.

@mergify mergify bot merged commit 158869d into os-autoinst:master Dec 29, 2021
@perlpunk perlpunk deleted the cover-backend branch December 29, 2021 17:31
Comment on lines +70 to +72
eval { $dummy->$m(@args) };
my $err = $@;
like $err, qr{backend method '$m' not implemented for class 'dummy'}, "notimplemented() works for '\$self->$m(@args)'";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could use https://metacpan.org/pod/Test::Fatal here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants