-
-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed tests for Linux * uncommented tests * Adjusted stub folder for source * reverted redundant change * fixed failing tests * fixed failing test on macOS * added changelog entry [skip-ci]
- Loading branch information
Showing
13 changed files
with
441 additions
and
21 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Foundation | ||
|
||
// sourcery: this will not appear under FooBarBaz | ||
|
||
/// Documentation for bar | ||
// sourcery: showComment | ||
/// other documentation | ||
class BarBaz: FooBarBaz, AutoEquatable { | ||
// Note: when Swift Linux doesn't bug out on [String: String], add a test back for it | ||
// See https://github.com/krzysztofzablocki/Sourcery/pull/1208#issuecomment-1752185381 | ||
// typealias List = [FooBarBaz] | ||
var parent: FooBarBaz? = nil | ||
var otherVariable: Int = 0 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Foundation | ||
|
||
class FooBarBaz { | ||
// Note: when Swift Linux doesn't bug out on [String: String], add a test back for it | ||
// See https://github.com/krzysztofzablocki/Sourcery/pull/1208#issuecomment-1752185381 | ||
// typealias Name = String | ||
|
||
var name: String = "" | ||
var value: Int = 0 | ||
} | ||
|
||
protocol AutoEquatable {} | ||
|
||
class FooSubclass: FooBarBaz, AutoEquatable { | ||
var other: String = "" | ||
} | ||
|
||
func performFoo(value: FooBarBaz) { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Foundation | ||
|
||
protocol HasFoo { | ||
var foo: FooBarBaz { get } | ||
} | ||
protocol HasBar { | ||
var bar: BarBaz { get } | ||
} | ||
|
||
// sourcery: AutoStruct | ||
typealias FooBar = HasFoo & HasBar |
Oops, something went wrong.