Skip to content

Commit 94193d9

Browse files
author
Alexey Naumov
committed
Merge branch 'quokkaKyu-master'
2 parents 28443c7 + 9dcf12a commit 94193d9

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

CountriesSwiftUI/Persistence/CoreDataHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protocol ManagedEntity: NSFetchRequestResult { }
1616
extension ManagedEntity where Self: NSManagedObject {
1717

1818
static var entityName: String {
19-
let nameMO = String(describing: Self.self)
19+
let nameMO = String(describing: self)
2020
let suffixIndex = nameMO.index(nameMO.endIndex, offsetBy: -2)
2121
return String(nameMO[..<suffixIndex])
2222
}

CountriesSwiftUI/System/PushNotificationsHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UserNotifications
1010

1111
protocol PushNotificationsHandler { }
1212

13-
class RealPushNotificationsHandler: NSObject, PushNotificationsHandler {
13+
final class RealPushNotificationsHandler: NSObject, PushNotificationsHandler {
1414

1515
private let deepLinksHandler: DeepLinksHandler
1616

CountriesSwiftUI/UI/Screens/CountriesList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private extension CountriesList {
8181
Variable `@Environment(\.locale) var locale: Locale`
8282
from the view is not accessible when searching by name
8383
*/
84-
class Container {
84+
final class Container {
8585
var locale: Locale = .backendDefault
8686
}
8787
let container: Container

CountriesSwiftUI/Utilities/LazyList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct LazyList<T> {
5252
}
5353

5454
private extension LazyList {
55-
class Cache {
55+
final private class Cache {
5656

5757
private var elements = [Int: T]()
5858

UnitTests/Interactors/UserPermissionsInteractorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
import Combine
1111
@testable import CountriesSwiftUI
1212

13-
class UserPermissionsInteractorTests: XCTestCase {
13+
final class UserPermissionsInteractorTests: XCTestCase {
1414

1515
var state = Store<AppState>(AppState())
1616
var sut: RealUserPermissionsInteractor!

UnitTests/Mocks/MockedInteractors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct MockedImagesInteractor: Mock, ImagesInteractor {
8484

8585
// MARK: - ImagesInteractor
8686

87-
class MockedUserPermissionsInteractor: Mock, UserPermissionsInteractor {
87+
final class MockedUserPermissionsInteractor: Mock, UserPermissionsInteractor {
8888

8989
enum Action: Equatable {
9090
case resolveStatus(Permission)

UnitTests/Repositories/PushTokenWebRepositoryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
import Combine
1111
@testable import CountriesSwiftUI
1212

13-
class PushTokenWebRepositoryTests: XCTestCase {
13+
final class PushTokenWebRepositoryTests: XCTestCase {
1414

1515
private var sut: RealPushTokenWebRepository!
1616
private var cancelBag = CancelBag()

UnitTests/System/DeepLinksHandlerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import XCTest
1010
@testable import CountriesSwiftUI
1111

12-
class DeepLinksHandlerTests: XCTestCase {
12+
final class DeepLinksHandlerTests: XCTestCase {
1313

1414
func test_noSideEffectOnInit() {
1515
let interactors: DIContainer.Interactors = .mocked()

UnitTests/System/PushNotificationsHandlerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import XCTest
1010
import UserNotifications
1111
@testable import CountriesSwiftUI
1212

13-
class PushNotificationsHandlerTests: XCTestCase {
13+
final class PushNotificationsHandlerTests: XCTestCase {
1414

1515
var sut: RealPushNotificationsHandler!
1616

UnitTests/Utilities/HelpersTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import XCTest
1010
@testable import CountriesSwiftUI
1111

12-
class HelpersTests: XCTestCase {
12+
final class HelpersTests: XCTestCase {
1313

1414
func test_localized_knownLocale() {
1515
let sut = "Countries".localized(Locale(identifier: "fr"))

0 commit comments

Comments
 (0)