Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-T-Dev committed Nov 6, 2024
1 parent 06513aa commit c37cddc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,27 @@ public enum AutoMockable: PeerMacro {
),
memberBlock: MemberBlockSyntax(
members: try MemberBlockItemListSyntax(itemsBuilder: {
// Init
InitializerDeclSyntax(
modifiers: .init(itemsBuilder: {
DeclModifierSyntax(name: accessLevel.tokenSyntax)
}),
signature: .init(
parameterClause: .init(
parameters: .init(
itemsBuilder: {}
)
)
),
body: .init(
statements: .init(
itemsBuilder: {

}
)
)
)

// Classes that has mock data for each function
for funcData in functionsToMock {
ClassMockForFunctionBuilder(funcData: funcData).build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ final class MockableMacrosTests: XCTestCase {
}
internal class PlayingObjectMock: PlayingObject {
internal init() {
}
internal class TmpFunc_Value {
internal struct Parameters {
internal let value: String
Expand Down

0 comments on commit c37cddc

Please sign in to comment.