woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False Positive: Test methods in extensions

AdamPro13 opened this issue · comments

It looks like test methods declared in extensions currently show warnings as false positives despite the xctest rule being enabled. The following testExample() method shows a warning.

class MyTestClass: XCTestCase {
}

extension MyTestClass {
    func testExample() { // This shows a warning as being unused
        XCTAssertTrue(true)
    }
}
commented

Fixed, the version is 0.0.12