You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves issue with endpoints not reporting errors when there's a custom closure (#355)
* Fixing issue with generated code not using the unimplemented default method.
* Fixing all tests
Not sure if DependencyClientTest is still necessary but keeping it to allow the maintainers to decide.
Copy file name to clipboardExpand all lines: Tests/DependenciesMacrosPluginTests/DependencyClientMacroTests.swift
-12Lines changed: 0 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -816,10 +816,6 @@ final class DependencyClientMacroTests: BaseTestCase {
816
816
struct Client {
817
817
@available(iOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(macOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(tvOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(watchOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.")
818
818
var fetch: (_ id: Int) throws -> String {
819
-
@storageRestrictions(initializes: _fetch)
820
-
init(initialValue) {
821
-
_fetch = initialValue
822
-
}
823
819
get {
824
820
_fetch
825
821
}
@@ -864,10 +860,6 @@ final class DependencyClientMacroTests: BaseTestCase {
864
860
struct Client {
865
861
@available(iOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(macOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(tvOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.") @available(watchOS, deprecated: 9999, message: "This property has a method equivalent that is preferred for autocomplete via this deprecation. It is perfectly fine to use for overriding and accessing via '@Dependency'.")
866
862
var fetch: (_ id: Int) throws -> String {
867
-
@storageRestrictions(initializes: _fetch)
868
-
init(initialValue) {
869
-
_fetch = initialValue
870
-
}
871
863
get {
872
864
_fetch
873
865
}
@@ -910,10 +902,6 @@ final class DependencyClientMacroTests: BaseTestCase {
0 commit comments