@@ -16,71 +16,71 @@ final class StubFromClassAndStructGeneratorMacroTests: XCTestCase {
16
16
assertMacroExpansion (
17
17
simpleStruct,
18
18
expandedSource: simpleStructExpansion,
19
- macros: [ " Stubbed " : StubGeneratorMacro . self]
19
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
20
20
)
21
21
}
22
22
23
23
func test_givenSimpleClass_shouldGenerateDefault( ) {
24
24
assertMacroExpansion (
25
25
simpleClass,
26
26
expandedSource: simpleClassExpansion,
27
- macros: [ " Stubbed " : StubGeneratorMacro . self]
27
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
28
28
)
29
29
}
30
30
31
31
func test_givenSimpleClassWithInit_shouldGenerateDefault( ) {
32
32
assertMacroExpansion (
33
33
simpleClassWithInit,
34
34
expandedSource: simpleClassWithInitExpansion,
35
- macros: [ " Stubbed " : StubGeneratorMacro . self]
35
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
36
36
)
37
37
}
38
38
39
39
func test_givenSimpleClassWithRandomInit_shouldGenerateDefault( ) {
40
40
assertMacroExpansion (
41
41
simpleClassWithRandomInit,
42
42
expandedSource: simpleClassWithRandomInitExpansion,
43
- macros: [ " Stubbed " : StubGeneratorMacro . self]
43
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
44
44
)
45
45
}
46
46
47
47
func test_givenSimpleClassWithDifferentInit_shouldGenerateDefault( ) {
48
48
assertMacroExpansion (
49
49
simpleClassWithDifferentInit,
50
50
expandedSource: simpleClassWithDifferentInitExpansion,
51
- macros: [ " Stubbed " : StubGeneratorMacro . self]
51
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
52
52
)
53
53
}
54
54
55
55
func test_givenSimpleStructWithClosure_shouldGenerateDefault( ) {
56
56
assertMacroExpansion (
57
57
simpleStructWithClosure,
58
58
expandedSource: simpleStructWithClosureExpansion,
59
- macros: [ " Stubbed " : StubGeneratorMacro . self]
59
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
60
60
)
61
61
}
62
62
63
63
func test_givenSimpleClasstWithClosure_shouldGenerateDefault( ) {
64
64
assertMacroExpansion (
65
65
simpleClassWithClosure,
66
66
expandedSource: simpleClassWithClosureExpansion,
67
- macros: [ " Stubbed " : StubGeneratorMacro . self]
67
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
68
68
)
69
69
}
70
70
71
71
func test_givenSimpleStructWithOptional_shouldGenerateDefault( ) {
72
72
assertMacroExpansion (
73
73
simpleStructWithOptional,
74
74
expandedSource: simpleStructWithOptionalExpansion,
75
- macros: [ " Stubbed " : StubGeneratorMacro . self]
75
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
76
76
)
77
77
}
78
78
79
79
func test_givenSimpleStructWithTypeAlias_shouldGenerateDefault( ) {
80
80
assertMacroExpansion (
81
81
typeAliasStruct,
82
82
expandedSource: typeAliasStructExpansion,
83
- macros: [ " Stubbed " : StubGeneratorMacro . self]
83
+ macros: [ " Stubbed " : StubFromTypeGeneratorMacro . self]
84
84
)
85
85
}
86
86
}
@@ -111,7 +111,7 @@ struct Some {
111
111
"""
112
112
113
113
private let simpleClassWithClosure : String = """
114
- @Stubbed(.publicStub )
114
+ @Stubbed(public: true )
115
115
class Some {
116
116
let voidClosure: () -> Void
117
117
let argVoidClosure: (Int) -> Void
@@ -193,7 +193,7 @@ struct Some {
193
193
"""
194
194
195
195
private let simpleClassWithDifferentInit : String = """
196
- @Stubbed(.publicStub )
196
+ @Stubbed(public: true )
197
197
class Some {
198
198
let int: Int
199
199
var double: Double
@@ -260,7 +260,7 @@ class Some {
260
260
"""
261
261
262
262
private let simpleClassWithInit : String = """
263
- @Stubbed(.publicStub )
263
+ @Stubbed(public: true )
264
264
class Some {
265
265
let int: Int
266
266
var double: Double
@@ -317,7 +317,7 @@ class Some {
317
317
"""
318
318
319
319
private let simpleStruct : String = """
320
- @Stubbed(.publicStub )
320
+ @Stubbed(public: true )
321
321
struct Some {
322
322
let int: Int
323
323
var double: Double
0 commit comments