humanmade / go-anonymize-mysqldump

Allows you to pipe data from mysqldump or an SQL file and anonymize it.
GNU General Public License v3.0
60 stars 26 forks source link

Generate random data instead of fixed strings #2

Closed nathanielks closed 4 years ago

nathanielks commented 4 years ago

While I've been building the prototype, I've been replacing values using functions with fixed strings. I want to use a faker-type library to actually generate random data, but unit testing randomly generated data is tough so I've been deferring solving that problem.

I just realized I could use the existing functions as mocks for testing purposes, now I just need to write the integration.

nathanielks commented 4 years ago

Fixed in https://github.com/humanmade/go-anonymize-mysqldump/commit/86a0483847937e886d63785b73fb17648cb0b610