mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
b83e0991b9
The MIT license doesn't require that all files be prepended with this licensing or copyright information. Realm confirmed that they're ok with this change. This will enable some companies to contribute to SwiftLint and the date & authorship information will remain accessible via git source control.
70 lines
2.1 KiB
Swift
70 lines
2.1 KiB
Swift
import Foundation
|
|
|
|
internal struct QuickDiscouragedPendingTestRuleExamples {
|
|
static let nonTriggeringExamples = [
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" describe(\"foo\") {\n" +
|
|
" describe(\"bar\") { } \n" +
|
|
" context(\"bar\") {\n" +
|
|
" it(\"bar\") { }\n" +
|
|
" }\n" +
|
|
" it(\"bar\") { }\n" +
|
|
" itBehavesLike(\"bar\")\n" +
|
|
" }\n" +
|
|
" }\n" +
|
|
"}\n"
|
|
]
|
|
|
|
static let triggeringExamples = [
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" ↓xdescribe(\"foo\") { }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" ↓xcontext(\"foo\") { }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" ↓xit(\"foo\") { }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" describe(\"foo\") {\n" +
|
|
" ↓xit(\"bar\") { }\n" +
|
|
" }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" context(\"foo\") {\n" +
|
|
" ↓xit(\"bar\") { }\n" +
|
|
" }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" describe(\"foo\") {\n" +
|
|
" context(\"bar\") {\n" +
|
|
" ↓xit(\"toto\") { }\n" +
|
|
" }\n" +
|
|
" }\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" ↓pending(\"foo\")\n" +
|
|
" }\n" +
|
|
"}\n",
|
|
"class TotoTests: QuickSpec {\n" +
|
|
" override func spec() {\n" +
|
|
" ↓xitBehavesLike(\"foo\")\n" +
|
|
" }\n" +
|
|
"}\n"
|
|
]
|
|
}
|