mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 01:05:19 +00:00
Perf: Add final to classes that are not inherited (#574)
This commit is contained in:
@@ -270,7 +270,7 @@ final class BLEServiceTests: XCTestCase {
|
||||
|
||||
// MARK: - Mock Delegate Helper
|
||||
|
||||
private class MockBitchatDelegate: BitchatDelegate {
|
||||
private final class MockBitchatDelegate: BitchatDelegate {
|
||||
private let messageHandler: (BitchatMessage) -> Void
|
||||
|
||||
init(_ handler: @escaping (BitchatMessage) -> Void) {
|
||||
|
||||
@@ -26,7 +26,7 @@ import CoreBluetooth
|
||||
/// - `autoFloodEnabled` is disabled by default; Integration tests enable it in `setUp()` to
|
||||
/// simulate broadcast propagation across the mesh. E2E tests keep it off and perform explicit
|
||||
/// relays when needed.
|
||||
class MockBLEService: NSObject {
|
||||
final class MockBLEService: NSObject {
|
||||
// Enable automatic flooding for public messages in integration tests only
|
||||
static var autoFloodEnabled: Bool = false
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import Foundation
|
||||
import CryptoKit
|
||||
@testable import bitchat
|
||||
|
||||
class TestHelpers {
|
||||
final class TestHelpers {
|
||||
|
||||
// MARK: - Key Generation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user