Skip to content

Commit 399023c

Browse files
committed
Mark all test classes as final.
From the comment in the review on #1480, doing this for all tests.
1 parent ae46953 commit 399023c

File tree

66 files changed

+78
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+78
-78
lines changed

Tests/SwiftProtobufPluginLibraryTests/Test_Descriptor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import XCTest
1212
import SwiftProtobuf
1313
import SwiftProtobufPluginLibrary
1414

15-
class Test_Descriptor: XCTestCase {
15+
final class Test_Descriptor: XCTestCase {
1616

1717
func testParsing() throws {
1818
let fileSet = try Google_Protobuf_FileDescriptorSet(serializedData: fileDescriptorSetData)

Tests/SwiftProtobufPluginLibraryTests/Test_NamingUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import XCTest
1212
import SwiftProtobuf
1313
@testable import SwiftProtobufPluginLibrary
1414

15-
class Test_NamingUtils: XCTestCase {
15+
final class Test_NamingUtils: XCTestCase {
1616

1717
func testTypePrefix() throws {
1818
// package, swiftPrefix, expected

Tests/SwiftProtobufPluginLibraryTests/Test_ProtoFileToModuleMappings.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension ProtoFileToModuleMappings.LoadError: Equatable {
3030

3131
fileprivate typealias FileDescriptorProto = Google_Protobuf_FileDescriptorProto
3232

33-
class Test_ProtoFileToModuleMappings: XCTestCase {
33+
final class Test_ProtoFileToModuleMappings: XCTestCase {
3434

3535
func test_Initialization() {
3636
// ProtoFileToModuleMappings always includes mappings for the protos that

Tests/SwiftProtobufPluginLibraryTests/Test_SwiftLanguage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import XCTest
1616
import SwiftProtobufPluginLibrary
1717

18-
class Test_SwiftLanguage: XCTestCase {
18+
final class Test_SwiftLanguage: XCTestCase {
1919
func testIsValidSwiftIdentifier() {
2020
let cases = [
2121
"H9000",

Tests/SwiftProtobufPluginLibraryTests/Test_SwiftProtobufNamer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import SwiftProtobuf
1313
import SwiftProtobufPluginLibrary
1414
import SwiftProtobufTestHelpers
1515

16-
class Test_SwiftProtobufNamer: XCTestCase {
16+
final class Test_SwiftProtobufNamer: XCTestCase {
1717

1818
func testEnumValueHandling_AliasNameMatches() throws {
1919
let txt = [

Tests/SwiftProtobufTests/Test_AllTypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foundation
1919
import SwiftProtobuf
2020
import XCTest
2121

22-
class Test_AllTypes: XCTestCase, PBTestHelpers {
22+
final class Test_AllTypes: XCTestCase, PBTestHelpers {
2323
typealias MessageTestType = SwiftProtoTesting_TestAllTypes
2424

2525
// Custom decodeSucceeds that also does a round-trip through the Empty

Tests/SwiftProtobufTests/Test_AllTypes_Proto3.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import Foundation
1919
import XCTest
2020

21-
class Test_AllTypes_Proto3: XCTestCase, PBTestHelpers {
21+
final class Test_AllTypes_Proto3: XCTestCase, PBTestHelpers {
2222
typealias MessageTestType = SwiftProtoTesting_Proto3_TestAllTypes
2323

2424
// Custom decodeSucceeds that also does a round-trip through the Empty

Tests/SwiftProtobufTests/Test_AllTypes_Proto3_Optional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import Foundation
1919
import XCTest
2020

21-
class Test_AllTypes_Proto3_Optional: XCTestCase, PBTestHelpers {
21+
final class Test_AllTypes_Proto3_Optional: XCTestCase, PBTestHelpers {
2222
typealias MessageTestType = SwiftProtoTesting_TestProto3Optional
2323

2424
// Custom decodeSucceeds that also does a round-trip through the Empty

Tests/SwiftProtobufTests/Test_Any.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foundation
1919
import XCTest
2020
import SwiftProtobuf
2121

22-
class Test_Any: XCTestCase {
22+
final class Test_Any: XCTestCase {
2323

2424
func test_Any() throws {
2525
var content = SwiftProtoTesting_TestAllTypes()

Tests/SwiftProtobufTests/Test_Api.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Foundation
1818
import XCTest
1919
import SwiftProtobuf
2020

21-
class Test_Api: XCTestCase, PBTestHelpers {
21+
final class Test_Api: XCTestCase, PBTestHelpers {
2222
typealias MessageTestType = Google_Protobuf_Api
2323

2424
func testExists() {

0 commit comments

Comments
 (0)