Skip to content

Commit

Permalink
added back function so we can say it's verbatim
Browse files Browse the repository at this point in the history
  • Loading branch information
ndurell committed Jan 3, 2025
1 parent ca3e06e commit a556b42
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import Foundation
@_spi(CurrentTestCase) import XCTestDynamicOverlay
@testable import KlaviyoSDKDependencies

/// Asserts that an enum value matches a particular case and modifies the associated value in place.
@available(*, deprecated, message: "Use 'CasePathable.modify' to mutate an expected case, instead.")
public func XCTModify<Wrapped>(
_ optional: inout Wrapped?,
_ message: @autoclosure () -> String = "",
_ body: (inout Wrapped) throws -> Void,
file: StaticString = #filePath,
line: UInt = #line
) {
XCTModify(&optional, case: \.some, message(), body, file: file, line: line)
}

/// Asserts that an enum value matches a particular case and modifies the associated value in place.
@available(*, deprecated, message: "Use 'CasePathable.modify' to mutate an expected case, instead.")
public func XCTModify<Enum, Case>(
Expand Down

0 comments on commit a556b42

Please sign in to comment.