Skip to content

Commit

Permalink
Update test extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
rakaramos committed Oct 16, 2020
1 parent 811ae04 commit 6e88d7b
Showing 1 changed file with 108 additions and 9 deletions.
117 changes: 108 additions & 9 deletions Tests/XCTestExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,117 @@ public extension XCTestCase {

var exampleMutationTestResults: [MutationTestOutcome] {
return [
MutationTestOutcome(testSuiteOutcome: .failed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file1.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(testSuiteOutcome: .failed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file1.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(testSuiteOutcome: .passed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file1.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(
testSuiteOutcome: .failed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file1.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),
MutationTestOutcome(
testSuiteOutcome: .failed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file1.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),
MutationTestOutcome(
testSuiteOutcome: .passed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file1.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),

MutationTestOutcome(testSuiteOutcome: .failed, mutationPoint: MutationPoint(mutationOperatorId: .removeSideEffects, filePath: "/tmp/file2.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(testSuiteOutcome: .failed, mutationPoint: MutationPoint(mutationOperatorId: .removeSideEffects, filePath: "/tmp/file2.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(
testSuiteOutcome: .failed,
mutationPoint: MutationPoint(
mutationOperatorId: .removeSideEffects,
filePath: "/tmp/file2.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),
MutationTestOutcome(
testSuiteOutcome: .failed,
mutationPoint: MutationPoint(
mutationOperatorId: .removeSideEffects,
filePath: "/tmp/file2.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),

MutationTestOutcome(testSuiteOutcome: .failed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file3.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(testSuiteOutcome: .passed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file3.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(testSuiteOutcome: .passed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file3.swift", position: .firstPosition), operatorDescription: "from == to !="),
MutationTestOutcome(
testSuiteOutcome: .failed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file3.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),
MutationTestOutcome(
testSuiteOutcome: .passed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file3.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),
MutationTestOutcome(
testSuiteOutcome: .passed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file3.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
),

MutationTestOutcome(testSuiteOutcome: .passed, mutationPoint: MutationPoint(mutationOperatorId: .ror, filePath: "/tmp/file 4.swift", position: .firstPosition), operatorDescription: "from == to !=") // this file name intentionally has a space in it
MutationTestOutcome(
testSuiteOutcome: .passed,
mutationPoint: MutationPoint(
mutationOperatorId: .ror,
filePath: "/tmp/file 4.swift",
position: .firstPosition),
mutationSnapshot: MutationOperatorSnapshot(
before: "==",
after: "!=",
description: "from == to !="
)
) // this file name intentionally has a space in it
]
}
}

0 comments on commit 6e88d7b

Please sign in to comment.