Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Dec 15, 2023
1 parent aaf3516 commit ac8e4f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,14 @@ final class DependencyClientMacroTests: BaseTestCase {
var endpoint: @Sendable () -> Int
┬────────────────────────────
╰─ 🛑 Default value required for non-throwing closure 'endpoint'
Defaults are required so that the macro can generate a default, "unimplemented" version of the dependency via Client(). The default value can be anything and does not need to signify a real value. For example, if the endpoint returns a boolean, you can return 'false', or if it returns an array, you can return '[]'.
See the documentation for @DependencyClient for more information: https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependenciesmacros/dependencyclient()#Restrictions
✏️ Insert '= { <#Int#> }'
}
"""
} fixes: {
}fixes: {
"""
@DependencyClient
struct Client: Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ final class DependencyEndpointMacroTests: BaseTestCase {
var endpoint: () -> Bool
┬───────────────────
╰─ 🛑 Default value required for non-throwing closure 'endpoint'
Defaults are required so that the macro can generate a default, "unimplemented" version of the dependency. The default value can be anything and does not need to signify a real value. For example, if the endpoint returns a boolean, you can return 'false', or if it returns an array, you can return '[]'.
See the documentation for @DependencyClient for more information: https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependenciesmacros/dependencyclient()#Restrictions
✏️ Insert '= { <#Bool#> }'
}
"""
} fixes: {
}fixes: {
"""
struct Client {
@DependencyEndpoint
Expand Down Expand Up @@ -142,10 +146,14 @@ final class DependencyEndpointMacroTests: BaseTestCase {
var endpoint: (Int, Bool, String) -> Bool
┬────────────────────────────────────
╰─ 🛑 Default value required for non-throwing closure 'endpoint'
Defaults are required so that the macro can generate a default, "unimplemented" version of the dependency. The default value can be anything and does not need to signify a real value. For example, if the endpoint returns a boolean, you can return 'false', or if it returns an array, you can return '[]'.
See the documentation for @DependencyClient for more information: https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependenciesmacros/dependencyclient()#Restrictions
✏️ Insert '= { _, _, _ in <#Bool#> }'
}
"""
} fixes: {
}fixes: {
"""
struct Client {
@DependencyEndpoint
Expand Down

0 comments on commit ac8e4f8

Please sign in to comment.