String
public extension String
extension String: AcceptableByConfigurationElement
-
asExample(configuration:excludeFromDocumentation: testWrappingInComment: testMultiByteOffsets: testWrappingInString: testDisableCommand: testOnLinux: testOnWindows: fileID: file: line: ) Wraps this code in an
Example, applying the specified properties.Declaration
Swift
func asExample( configuration: [String: any Sendable]? = nil, excludeFromDocumentation: Bool = false, testWrappingInComment: Bool = true, testMultiByteOffsets: Bool = true, testWrappingInString: Bool = true, testDisableCommand: Bool = true, testOnLinux: Bool = true, testOnWindows: Bool = true, fileID: String = #fileID, file: StaticString = #filePath, line: UInt = #line ) -> Example -
Makes this example focused, so that only this and other focused tests run. For debugging purposes only.
Declaration
Swift
func focused( fileID: String = #fileID, file: StaticString = #filePath, line: UInt = #line ) -> Example
-
Declaration
Swift
public func asOption() -> OptionType -
Declaration
Swift
public init(fromAny value: Any, context ruleID: String) throws(Issue)
View on GitHub
Install in Dash