Skip to content

Commit 41a262c

Browse files
committed
fix test for macro change
1 parent c88f90d commit 41a262c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Tests/ComposableArchitectureMacrosTests/PresentsMacroTests.swift

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
final class PresentsMacroTests: XCTestCase {
99
override func invokeTest() {
1010
withMacroTesting(
11-
// isRecording: true,
11+
// record: .failed,
1212
macros: [PresentsMacro.self]
1313
) {
1414
super.invokeTest()
@@ -200,6 +200,22 @@
200200
public mutating func _$willModify() {
201201
_$observationRegistrar._$willModify()
202202
}
203+
204+
private nonisolated func shouldNotifyObservers<__macro_local_6MemberfMu_>(_ lhs: __macro_local_6MemberfMu_, _ rhs: __macro_local_6MemberfMu_) -> Bool {
205+
true
206+
}
207+
208+
private nonisolated func shouldNotifyObservers<__macro_local_6MemberfMu0_: Equatable>(_ lhs: __macro_local_6MemberfMu0_, _ rhs: __macro_local_6MemberfMu0_) -> Bool {
209+
lhs != rhs
210+
}
211+
212+
private nonisolated func shouldNotifyObservers<__macro_local_6MemberfMu1_: AnyObject>(_ lhs: __macro_local_6MemberfMu1_, _ rhs: __macro_local_6MemberfMu1_) -> Bool {
213+
lhs !== rhs
214+
}
215+
216+
private nonisolated func shouldNotifyObservers<__macro_local_6MemberfMu2_: Equatable & AnyObject>(_ lhs: __macro_local_6MemberfMu2_, _ rhs: __macro_local_6MemberfMu2_) -> Bool {
217+
lhs != rhs
218+
}
203219
}
204220
"""#
205221
}

0 commit comments

Comments
 (0)