Skip to content

Implemented code coverage test case for _as_label function - #670

Closed
MossIV wants to merge 3 commits into
data-8:masterfrom
MossIV:_as_label_test
Closed

MossIV wants to merge 3 commits into
data-8:masterfrom
MossIV:_as_label_test

Conversation

@MossIV

@MossIV MossIV commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

[X ] Wrote test for feature

Changes proposed:
Test case tests the _as_label function to see if it raises a ValueError exception along with the appropriate exception message

Test case tests the _as_label function to see if it raises a ValueError exception along with the appropriate exception message
@davidwagner

Copy link
Copy Markdown
Member

We generally prefer to test the externally visible API rather than internal private methods.

@coveralls

coveralls commented Jan 12, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 95.213% (+0.04%) from 95.172%
when pulling ecaebfe on MossIV:_as_label_test
into 8717257 on data-8:master.

@MossIV

MossIV commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

Got it, i'll keep that in mind for the future. Thanks for letting me know

@MossIV MossIV closed this Sep 14, 2026
@MossIV
MossIV deleted the _as_label_test branch September 14, 2026 03:10
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.

3 participants