diff --git a/Sources/Tracking/CustomerIO.swift b/Sources/Tracking/CustomerIO.swift index 7e23ef8e4..8cdd8543e 100644 --- a/Sources/Tracking/CustomerIO.swift +++ b/Sources/Tracking/CustomerIO.swift @@ -10,7 +10,7 @@ public protocol CustomerIOInstance: AutoMockable { onComplete: @escaping (Result) -> Void, jsonEncoder: JSONEncoder? ) - func identifyStop() + func clearIdentify() } public extension CustomerIOInstance { @@ -310,7 +310,7 @@ public class CustomerIO: CustomerIOInstance { If no profile has been identified yet, this function will ignore your request. */ - public func identifyStop() { + public func clearIdentify() { guard let identifyRepository = self.identifyRepository else { return } diff --git a/Sources/Tracking/autogenerated/AutoMockable.generated.swift b/Sources/Tracking/autogenerated/AutoMockable.generated.swift index 7bfa9113d..9236821ad 100644 --- a/Sources/Tracking/autogenerated/AutoMockable.generated.swift +++ b/Sources/Tracking/autogenerated/AutoMockable.generated.swift @@ -127,25 +127,25 @@ public class CustomerIOInstanceMock: CustomerIOInstance { identifyBodyClosure?(identifier, AnyEncodable(body), onComplete, jsonEncoder) } - // MARK: - identifyStop + // MARK: - clearIdentify /// Number of times the function was called. - public private(set) var identifyStopCallsCount = 0 + public private(set) var clearIdentifyCallsCount = 0 /// `true` if the function was ever called. - public var identifyStopCalled: Bool { - identifyStopCallsCount > 0 + public var clearIdentifyCalled: Bool { + clearIdentifyCallsCount > 0 } /** Set closure to get called when function gets called. Great way to test logic or return a value for the function. */ - public var identifyStopClosure: (() -> Void)? + public var clearIdentifyClosure: (() -> Void)? - /// Mocked function for `identifyStop()`. Your opportunity to return a mocked value and check result of mock in test code. - public func identifyStop() { + /// Mocked function for `clearIdentify()`. Your opportunity to return a mocked value and check result of mock in test code. + public func clearIdentify() { mockCalled = true - identifyStopCallsCount += 1 - identifyStopClosure?() + clearIdentifyCallsCount += 1 + clearIdentifyClosure?() } }