Skip to content

Commit 35a3773

Browse files
committed
[UPDATE] add disable rule
1 parent 82ee604 commit 35a3773

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Tests/YCoreUITests/Extensions/UIKit/UIView+constrainEdgesTests.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@
99
import XCTest
1010

1111
final class UIViewConstrainEdgesTests: XCTestCase {
12-
let edges: [NSDirectionalRectEdge] = [
13-
.top,
14-
.leading,
15-
.bottom,
16-
.trailing,
17-
.all,
18-
.horizontal,
19-
.vertical,
20-
.notTop,
21-
.notLeading,
22-
.notBottom,
23-
.notTrailing
24-
]
25-
2612
func testSimple() {
2713
let (sut, insets) = makeSUT()
2814
let constraints = sut.view1.constrainEdges(with: insets)
@@ -65,9 +51,23 @@ final class UIViewConstrainEdgesTests: XCTestCase {
6551
XCTAssertEqual(trailing?.constant, -insets.trailing)
6652
}
6753

54+
// swiftlint:disable function_body_length
6855
func testPartialEdges() {
6956
let (sut, _) = makeSUT()
70-
57+
let edges: [NSDirectionalRectEdge] = [
58+
.top,
59+
.leading,
60+
.bottom,
61+
.trailing,
62+
.all,
63+
.horizontal,
64+
.vertical,
65+
.notTop,
66+
.notLeading,
67+
.notBottom,
68+
.notTrailing
69+
]
70+
7171
let button = UIButton()
7272

7373
edges.forEach {

0 commit comments

Comments
 (0)