-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP log the active QueueIdentity objects at end of test suite
There are loads — why?
- Loading branch information
1 parent
eddfbc6
commit 0d7667f
Showing
2 changed files
with
72 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
/** | ||
Represents an execution of a test case method. | ||
*/ | ||
struct Test { | ||
struct Test: CustomStringConvertible { | ||
var id = UUID() | ||
private var function: StaticString | ||
var fileID: String | ||
var function: String | ||
|
||
init(function: StaticString = #function) { | ||
init(fileID: String = #fileID, function: String = #function) { | ||
self.fileID = fileID | ||
self.function = function | ||
NSLog("Created test \(id) for function \(function)") | ||
NSLog("Created test \(id) for function \(function) in file \(fileID)") | ||
} | ||
|
||
var description: String { | ||
return "Test(id: \(id), fileID: \(fileID), function: \(function))" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters