23 lines
577 B
Swift
23 lines
577 B
Swift
/**
|
|
A class that encapsulates information about an example,
|
|
including the index at which the example was executed, as
|
|
well as the example itself.
|
|
*/
|
|
@objc final public class ExampleMetadata {
|
|
/**
|
|
The example for which this metadata was collected.
|
|
*/
|
|
public let example: Example
|
|
|
|
/**
|
|
The index at which this example was executed in the
|
|
test suite.
|
|
*/
|
|
public let exampleIndex: Int
|
|
|
|
internal init(example: Example, exampleIndex: Int) {
|
|
self.example = example
|
|
self.exampleIndex = exampleIndex
|
|
}
|
|
}
|