You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you specify an annotation at a class, code coverage ignores the class and its methods. This is correct behavior.
But the same does not work for enum, but it works for its methods.
Current behavior
Annotation codeCoverageIgnore ingores for enums.
How to reproduce
/** * @codeCoverageIgnore */enum Some
{
case SomeCase;
// not ignored, red coveragepublicfunctionisSomeCase(): bool
{
return$this === self::SomeCase;
}
}
enum Some
{
case SomeCase;
/** * @codeCoverageIgnore * ok ignored, without coverage */publicfunctionisSomeCase(): bool
{
return$this === self::SomeCase;
}
}
Expected behavior
Code coverage will ignore enum and predicate.
The text was updated successfully, but these errors were encountered:
sebastianbergmann
changed the title
Annotation codeCoverageIgnore does not work for enum@codeCoverageIgnore annotation does not work on enumMar 12, 2024
Summary
If you specify an annotation at a class, code coverage ignores the class and its methods. This is correct behavior.
But the same does not work for enum, but it works for its methods.
Current behavior
Annotation
codeCoverageIgnore
ingores for enums.How to reproduce
Expected behavior
Code coverage will ignore enum and predicate.
The text was updated successfully, but these errors were encountered: