Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/DBusTests/InterfaceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import XCTest

final class InterfaceTests: XCTestCase {

static let allTests = [
(testInvalid, "testInvalid"),
(testValid, "testValid")
static let allTests: [(String, (InterfaceTests) -> () -> Void)] = [
("testInvalid", testInvalid),
("testValid", testValid)
]

func testInvalid() {
Expand Down
12 changes: 6 additions & 6 deletions Tests/DBusTests/MessageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import XCTest

final class MessageTests: XCTestCase {

static let allTests = [
(testBasicValueArguments, "testBasicValueArguments"),
(testArrayArguments, "testArrayArguments"),
(testStructureArguments, "testStructureArguments"),
(testErrorMessage, "testErrorMessage")
static let allTests: [(String, (MessageTests) -> () -> Void)] = [
("testBasicValueArguments", testBasicValueArguments),
("testArrayArguments", testArrayArguments),
("testStructureArguments", testStructureArguments),
("testErrorMessage", testErrorMessage)
]

func testBasicValueArguments() {
Expand All @@ -31,7 +31,7 @@ final class MessageTests: XCTestCase {
.uint64(.max),
.string("Test String"),
.objectPath(DBusObjectPath("/com/example/bus1")),
.signature(DBusSignature("a{s(ai)}"))
.signature(DBusSignature("a{s(ai)}")),
]

do {
Expand Down
10 changes: 5 additions & 5 deletions Tests/DBusTests/ObjectPathTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import XCTest

final class ObjectPathTests: XCTestCase {

static let allTests = [
(testInvalid, "testInvalid"),
(testValid, "testValid"),
(testEmpty, "testEmpty"),
(testMultithread, "testMultithread")
static let allTests: [(String, (ObjectPathTests) -> () -> Void)] = [
("testInvalid", testInvalid),
("testValid", testValid),
("testEmpty", testEmpty),
("testMultithread", testMultithread)
]

func testInvalid() {
Expand Down
6 changes: 3 additions & 3 deletions Tests/DBusTests/SignatureTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import XCTest

final class SignatureTests: XCTestCase {

static let allTests = [
(testInvalid, "testInvalid"),
(testValid, "testValid")
static let allTests: [(String, (SignatureTests) -> () -> Void)] = [
("testInvalid", testInvalid),
("testValid", testValid)
]

func testInvalid() {
Expand Down
3 changes: 3 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ import XCTest
@testable import DBusTests

XCTMain([
testCase(InterfaceTests.allTests),
testCase(MessageTests.allTests),
testCase(ObjectPathTests.allTests),
testCase(SignatureTests.allTests)
])