Closed imnosov closed 3 years ago
This PR is to fix an issue related to copying FuncMock.
FuncMock
In some cases especially when passing to closures, we faced issues related to copying on mutate. Sometimes not all calls are written to FuncMock.
Change all structure declaration to classes
Apple recommends to use struct whenever it's possible for performance and safety reasons. Thus it may insignificantly impact the performance.
struct
Description
This PR is to fix an issue related to copying
FuncMock
.Root cause
In some cases especially when passing to closures, we faced issues related to copying on mutate. Sometimes not all calls are written to
FuncMock
.Solution
Change all structure declaration to classes
Impact
Apple recommends to use
struct
whenever it's possible for performance and safety reasons. Thus it may insignificantly impact the performance.