(node: Node, parent: Node | null | undefined)
| 482 | } |
| 483 | |
| 484 | private readErrors(node: Node, parent: Node | null | undefined): void { |
| 485 | if (this.isErrorsTest(parent, node)) return |
| 486 | if ( |
| 487 | parent?.type === "MemberExpression" && |
| 488 | parent.object === node && |
| 489 | !isWriteTarget(parent) |
| 490 | ) { |
| 491 | const name = memberNameOf(parent) |
| 492 | if (name === "count") return |
| 493 | if (name === "issues") { |
| 494 | this.used.add("issues") |
| 495 | return |
| 496 | } |
| 497 | if (name === "summary") { |
| 498 | this.used.add("summary") |
| 499 | return |
| 500 | } |
| 501 | } |
| 502 | this.used.add("errors") |
| 503 | } |
| 504 | |
| 505 | private isErrorsTest(test: Node | null | undefined, tested: Node): boolean { |
| 506 | return ( |
no test coverage detected