Skip to content

Commit d9bcba4

Browse files
authored
Fix typos in FirebaseMLModelDownloader package (#13358)
1 parent ad64ec7 commit d9bcba4

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

FirebaseMLModelDownloader/Tests/Unit/ModelDownloaderUnitTests.swift

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// TODO: Create separate files for each class tested.
4040
final class ModelDownloaderUnitTests: XCTestCase {
4141
let fakeModelName = "fakeModelName"
42-
let fakemodelPath = "fakemodelPath"
42+
let fakeModelPath = "fakeModelPath"
4343
let fakeModelHash = "fakeModelHash"
4444
let fakeDownloadURL = URL(string: "www.fake-download-url.com")!
4545
let fakeFileURL = URL(string: "www.fake-model-file.com")!
@@ -269,7 +269,7 @@
269269
let fakeModel = CustomModel(
270270
name: fakeModelName,
271271
size: 10,
272-
path: fakemodelPath,
272+
path: fakeModelPath,
273273
hash: fakeModelHash
274274
)
275275
var modelOptions = ModelOptions()
@@ -298,8 +298,8 @@
298298
modelInfoRetriever.downloadModelInfo { result in
299299
completionExpectation.fulfill()
300300
switch result {
301-
case let .success(fakemodelInfoResult):
302-
switch fakemodelInfoResult {
301+
case let .success(fakeModelInfoResult):
302+
switch fakeModelInfoResult {
303303
case let .modelInfo(remoteModelInfo):
304304
XCTAssertEqual(remoteModelInfo.name, self.fakeModelName)
305305
XCTAssertEqual(remoteModelInfo.downloadURL, self.fakeDownloadURL)
@@ -326,8 +326,8 @@
326326
modelInfoRetriever.downloadModelInfo { result in
327327
completionExpectation.fulfill()
328328
switch result {
329-
case let .success(fakemodelInfoResult):
330-
switch fakemodelInfoResult {
329+
case let .success(fakeModelInfoResult):
330+
switch fakeModelInfoResult {
331331
case .modelInfo: XCTFail("Unexpected new model info from server.")
332332
case .notModified: break
333333
}
@@ -346,8 +346,8 @@
346346
modelInfoRetriever.downloadModelInfo { result in
347347
completionExpectation.fulfill()
348348
switch result {
349-
case let .success(fakemodelInfoResult):
350-
switch fakemodelInfoResult {
349+
case let .success(fakeModelInfoResult):
350+
switch fakeModelInfoResult {
351351
case .modelInfo: XCTFail("Unexpected new model info from server.")
352352
case .notModified: XCTFail("Expected failure since local model info was not set.")
353353
}
@@ -375,8 +375,8 @@
375375
modelInfoRetriever.downloadModelInfo { result in
376376
completionExpectation.fulfill()
377377
switch result {
378-
case let .success(fakemodelInfoResult):
379-
switch fakemodelInfoResult {
378+
case let .success(fakeModelInfoResult):
379+
switch fakeModelInfoResult {
380380
case .modelInfo: XCTFail("Unexpected new model info from server.")
381381
case .notModified: XCTFail("Expected failure since model hash does not match.")
382382
}
@@ -404,8 +404,8 @@
404404
modelInfoRetriever.downloadModelInfo { result in
405405
completionExpectation.fulfill()
406406
switch result {
407-
case let .success(fakemodelInfoResult):
408-
switch fakemodelInfoResult {
407+
case let .success(fakeModelInfoResult):
408+
switch fakeModelInfoResult {
409409
case .modelInfo: XCTFail("Unexpected new model info from server.")
410410
case .notModified: XCTFail("Expected failure since model name is invalid.")
411411
}
@@ -429,10 +429,10 @@
429429
modelInfoRetriever.downloadModelInfo { result in
430430
completionExpectation.fulfill()
431431
switch result {
432-
case let .success(fakemodelInfoResult):
433-
switch fakemodelInfoResult {
432+
case let .success(fakeModelInfoResult):
433+
switch fakeModelInfoResult {
434434
case .modelInfo: XCTFail("Unexpected new model info from server.")
435-
case .notModified: XCTFail("Expected failure since model name is not availabl.")
435+
case .notModified: XCTFail("Expected failure since model name is not available.")
436436
}
437437
case let .failure(error):
438438
XCTAssertEqual(error, .notFound)
@@ -454,8 +454,8 @@
454454
modelInfoRetriever.downloadModelInfo { result in
455455
completionExpectation.fulfill()
456456
switch result {
457-
case let .success(fakemodelInfoResult):
458-
switch fakemodelInfoResult {
457+
case let .success(fakeModelInfoResult):
458+
switch fakeModelInfoResult {
459459
case .modelInfo: XCTFail("Unexpected new model info from server.")
460460
case .notModified: XCTFail("Expected failure since resource exhausted.")
461461
}

0 commit comments

Comments
 (0)