@@ -168,6 +168,38 @@
Loading
168 168
        XCTAssertEqual(0, persister.removeQueueName.count)
169 169
    }
170 170
171 +
    func testCancelAllRepeatJob() {
172 +
        let (type, job) = (UUID().uuidString, TestJob())
173 +
174 +
        let id = UUID().uuidString
175 +
        let tag = UUID().uuidString
176 +
        let group = UUID().uuidString
177 +
178 +
        let creator = TestCreator([type: job])
179 +
180 +
        let persister = PersisterTracker(key: UUID().uuidString)
181 +
182 +
        let manager = SwiftQueueManagerBuilder(creator: creator).set(persister: persister).build()
183 +
184 +
        JobBuilder(type: type)
185 +
                .singleInstance(forId: UUID().uuidString)
186 +
                .periodic(limit: .unlimited, interval: Double.leastNonzeroMagnitude)
187 +
                .schedule(manager: manager)
188 +
189 +
190 +
        manager.cancelAllOperations()
191 +
192 +
        job.awaitForRemoval()
193 +
        job.assertRemovedBeforeRun(reason: .canceled)
194 +
195 +
        XCTAssertEqual(0, persister.putQueueName.count)
196 +
        XCTAssertEqual(0, persister.putJobUUID.count)
197 +
        XCTAssertEqual(0, persister.putData.count)
198 +
199 +
        XCTAssertEqual(0, persister.removeJobUUID.count)
200 +
        XCTAssertEqual(0, persister.removeQueueName.count)
201 +
    }
202 +
171 203
    func testAddOperationNotJobTask() {
172 204
        let params = SqManagerParams(
173 205
                jobCreator: TestCreator([:]),
Files Coverage
Sources/SwiftQueue 89.44%
Tests/SwiftQueueTests 95.39%
Project Totals (41 files) 92.90%
1
coverage:
2
  precision: 2
3
  round: down
4
  range: "70...100"
5

6
  status:
7
    project:
8
      default:
9
        target: 50%
10

11
    patch:
12
      default:
13
        target: 50%
14

15
comment:
16
  layout: "header, diff, changes, sunburst, uncovered, tree"
17
  behavior: default
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading