Skip to content

Commit

Permalink
Remove debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
qmchenry committed Jun 4, 2020
1 parent 59bc83c commit 0809a33
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion Sources/UILint/QAReport.swift
Original file line number Diff line number Diff line change
@@ -51,7 +51,6 @@ struct QAReport {
let attributedString = NSAttributedString(string: string, attributes: attributes)
let drawingOptions: NSStringDrawingOptions = [.usesLineFragmentOrigin, .usesFontLeading]
let stringSize = attributedString.boundingRect(with: CGSize(width: actualWidth, height: .greatestFiniteMagnitude), options: drawingOptions, context: nil)
print("'\(string)' \(stringSize) \(attributedString.size())")
if stringSize.height + currentY > pageSize.height {
newPage()
}
8 changes: 0 additions & 8 deletions Tests/UILintTests/TappabilityTests.swift
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
let tapFindings = findings.filter { $0.message == "Tappable view UIButton is obscured by UIView" }
XCTAssertEqual(tapFindings.count, 1)
XCTAssertEqual(tapFindings[0].severity, .error)
@@ -43,7 +42,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
let tapFindings = findings.filter { $0.message == "Tappable view UIButton is obscured by UIView" }
XCTAssertEqual(tapFindings.count, 1)
XCTAssertEqual(tapFindings[0].severity, .error)
@@ -59,7 +57,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
XCTAssertEqual(findings.count, 0)
}

@@ -73,7 +70,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
XCTAssertEqual(findings.count, 0)
}

@@ -88,7 +84,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
XCTAssertEqual(findings.count, 0)
}

@@ -103,7 +98,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
XCTAssertEqual(findings.count, 0)
}

@@ -119,7 +113,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
let tapFindings = findings.filter { $0.message == "Tappable view UIView is obscured by UIView" }
XCTAssertEqual(tapFindings.count, 1)
XCTAssertEqual(tapFindings[0].severity, .error)
@@ -138,7 +131,6 @@ class TappabilityTests: XCTestCase {
sut.view.addSubview(over)
let lint = UILint(view: sut.view)
let findings = lint!.findings
print(findings.map { $0.debugDescription }.joined(separator: "\n"))
let tapFindings = findings.filter { $0.message == "Tappable view UIView is obscured by UIView" }
XCTAssertEqual(tapFindings.count, 0)
}

0 comments on commit 0809a33

Please sign in to comment.