|
| 1 | +@testable import DataLoader |
1 | 2 | import NIOCore |
2 | 3 | import NIOPosix |
3 | 4 | import XCTest |
4 | 5 |
|
5 | | -@testable import DataLoader |
6 | | - |
7 | 6 | /// Primary API |
8 | 7 | final class DataLoaderTests: XCTestCase { |
9 | 8 | /// Builds a really really simple data loader' |
@@ -48,7 +47,7 @@ final class DataLoaderTests: XCTestCase { |
48 | 47 | XCTAssertTrue(empty.isEmpty) |
49 | 48 | } |
50 | 49 |
|
51 | | - // Batches multiple requests |
| 50 | + /// Batches multiple requests |
52 | 51 | func testMultipleRequests() throws { |
53 | 52 | let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1) |
54 | 53 | defer { |
@@ -144,7 +143,7 @@ final class DataLoaderTests: XCTestCase { |
144 | 143 | XCTAssertTrue(loadCalls == [[1]]) |
145 | 144 | } |
146 | 145 |
|
147 | | - // Caches repeated requests |
| 146 | + /// Caches repeated requests |
148 | 147 | func testCachesRepeatedRequests() throws { |
149 | 148 | let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1) |
150 | 149 | defer { |
@@ -270,7 +269,7 @@ final class DataLoaderTests: XCTestCase { |
270 | 269 | XCTAssertTrue(loadCalls == [["A", "B"], ["A", "B"]]) |
271 | 270 | } |
272 | 271 |
|
273 | | - // Allows priming the cache |
| 272 | + /// Allows priming the cache |
274 | 273 | func testAllowsPrimingTheCache() throws { |
275 | 274 | let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1) |
276 | 275 | defer { |
@@ -384,7 +383,7 @@ final class DataLoaderTests: XCTestCase { |
384 | 383 | XCTAssertTrue(loadCalls == [["B"]]) |
385 | 384 | } |
386 | 385 |
|
387 | | - // Caches repeated requests, even if initiated asyncronously |
| 386 | + /// Caches repeated requests, even if initiated asyncronously |
388 | 387 | func testCacheConcurrency() throws { |
389 | 388 | let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1) |
390 | 389 | defer { |
|
0 commit comments