-
Notifications
You must be signed in to change notification settings - Fork 144
[TASK] Reduce and finetune the scope of @covers
annotations
#1188
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
use Sabberworm\CSS\Parsing\OutputException; | ||
|
||
/** | ||
* @covers \Sabberworm\CSS\OutputFormat | ||
* @coversNothing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this covering various There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As far as I understand this test, it's not about covering how |
||
*/ | ||
final class OutputFormatTest extends TestCase | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,7 @@ | |
use Sabberworm\CSS\Settings; | ||
|
||
/** | ||
* @covers \Sabberworm\CSS\CSSList\Document | ||
* @covers \Sabberworm\CSS\Parser | ||
* @covers \Sabberworm\CSS\RuleSet\DeclarationBlock | ||
* @covers \Sabberworm\CSS\Rule\Rule | ||
* @covers \Sabberworm\CSS\Value\CSSString | ||
* @covers \Sabberworm\CSS\Value\CalcFunction | ||
* @covers \Sabberworm\CSS\Value\Color | ||
* @covers \Sabberworm\CSS\Value\LineName | ||
* @covers \Sabberworm\CSS\Value\Size | ||
* @covers \Sabberworm\CSS\Value\URL | ||
* @coversNothing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree it's generally not clear which of the classes this covers - but doesn't it at least cover There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It calls code in |
||
*/ | ||
final class LenientParsingTest extends TestCase | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this cover
Comment::render()
andParserState::consumeWhitespace()
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment::render()
is called. As far as I understand the tests (which is not far), they're about other elements rendering comments (or not) depending on theOutputFormat
settings.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's
outputFormatter::comments()
where the controlling logic is.