golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 611 forks source link

add exists file data comparison before write #618

Closed kozmod closed 2 years ago

kozmod commented 2 years ago

Add checking of destination file existence and comparison exists file data before rewriting the file: #604

sodul commented 2 years ago

I have a very similar change in PR #626, which I wrote before I saw this was pending review. My version is slightly smaller, and I really do not mind which of the two versions get merged. @codyoss can pick either.

codyoss commented 2 years ago

Closing in favor of #626