Skip to content

Commit 9d53da7

Browse files
committed
Adjust variables and func visibility
1 parent 9972d98 commit 9d53da7

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

GLTableCollectionViewTests/GLTableCollectionViewTests.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
import XCTest
3131
@testable import GLTableCollectionView
3232

33-
class GLTableCollectionViewTests: XCTestCase {
34-
var tableCollectionView: GLTableCollectionViewController!
35-
var visibleCells: [UITableViewCell]!
33+
final class GLTableCollectionViewTests: XCTestCase {
34+
private var tableCollectionView: GLTableCollectionViewController!
35+
private var visibleCells: [UITableViewCell]!
3636

3737
override func setUp() {
3838
super.setUp()
@@ -48,7 +48,7 @@ class GLTableCollectionViewTests: XCTestCase {
4848

4949
// MARK: <GLTableCollectionViewController>
5050

51-
func testInstanceVariables() {
51+
private func testInstanceVariables() {
5252
XCTAssertGreaterThan(tableCollectionView.numberOfSections, 0,
5353
"numberOfSections was: \(tableCollectionView.numberOfSections)\nUITableView must have at least one section")
5454

@@ -68,7 +68,7 @@ class GLTableCollectionViewTests: XCTestCase {
6868
"tableCellID was: \(GLTableCollectionViewController.tableCellID)\nUITableViewCell's cellIdentifier must contain only one # in it")
6969
}
7070

71-
func testRandomColorsGeneration() {
71+
private func testRandomColorsGeneration() {
7272
let colorsDictionary: [Int: [UIColor]] = tableCollectionView.colorsDict
7373

7474
XCTAssertNotNil(colorsDictionary, "Colors dictionary is nil")
@@ -82,23 +82,23 @@ class GLTableCollectionViewTests: XCTestCase {
8282
}
8383
}
8484

85-
func testTableViewDataSource() {
85+
private func testTableViewDataSource() {
8686
XCTAssertNotNil(tableCollectionView.tableView.dataSource, "UITableView dataSource is nil")
8787
}
8888

89-
func testTableViewDelegate() {
89+
private func testTableViewDelegate() {
9090
XCTAssertNotNil(tableCollectionView.tableView.delegate, "UITableView delegate is nil")
9191
}
9292

93-
func testUITableViewCellClasses() {
93+
private func testUITableViewCellClasses() {
9494
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
9595

9696
for tableViewCell in visibleCells {
9797
XCTAssertTrue(tableViewCell is GLCollectionTableViewCell, "UITableViewCells must be GLCollectionTableViewCell")
9898
}
9999
}
100100

101-
func testTableViewCellIdentifiers() {
101+
private func testTableViewCellIdentifiers() {
102102
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
103103

104104
for tableViewCell: GLCollectionTableViewCell in visibleCells as! [GLCollectionTableViewCell] {
@@ -109,7 +109,7 @@ class GLTableCollectionViewTests: XCTestCase {
109109

110110
// MARK: <GLCollectionTableViewCell>
111111

112-
func testCollectionViewsDelegateAndDataSource() {
112+
private func testCollectionViewsDelegateAndDataSource() {
113113
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
114114

115115
for collectionTableCell: GLCollectionTableViewCell in visibleCells as! [GLCollectionTableViewCell] {
@@ -118,7 +118,7 @@ class GLTableCollectionViewTests: XCTestCase {
118118
}
119119
}
120120

121-
func testCollectionNativePaginationFlag() {
121+
private func testCollectionNativePaginationFlag() {
122122
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
123123

124124
for collectionTableCell: GLCollectionTableViewCell in visibleCells as! [GLCollectionTableViewCell] {
@@ -129,7 +129,7 @@ class GLTableCollectionViewTests: XCTestCase {
129129
}
130130
}
131131

132-
func testCollectionViewPaginationConsistency() {
132+
private func testCollectionViewPaginationConsistency() {
133133
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
134134

135135
for collectionTableCell: GLCollectionTableViewCell in visibleCells as! [GLCollectionTableViewCell] {
@@ -143,7 +143,7 @@ class GLTableCollectionViewTests: XCTestCase {
143143
}
144144
}
145145

146-
func testCollectionViewCellHeights() {
146+
private func testCollectionViewCellHeights() {
147147
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")
148148

149149
let tableViewCellHeight: CGFloat = tableCollectionView.tableView.rowHeight
@@ -154,7 +154,7 @@ class GLTableCollectionViewTests: XCTestCase {
154154

155155
// MARK: <Other>
156156

157-
func testOpaqueFlag() {
157+
private func testOpaqueFlag() {
158158
XCTAssertTrue(tableCollectionView.tableView.isOpaque, "The UITableView should be opaque for increased performances")
159159

160160
XCTAssertGreaterThan(visibleCells.count, 0, "UITableView visible cells must be greater than 0")

0 commit comments

Comments
 (0)