I am running into issues mocking setting json serialized data for value, tried regex and that didn't work either, throws parameters do not match, expectation error with or without regex.
Here are a couple of examples of how I tried to mock setting json serialized data value:
mock.Regexp().ExpectSet(key, "(.+)", 5*time.Minute).SetVal("hey")mock.Regexp().ExpectSet(key, "(\\[[\\d\\s]+\\])", 5*time.Minute).SetVal("hey")
Hi,
I am running into issues mocking setting json serialized data for value, tried regex and that didn't work either, throws
parameters do not match, expectation
error with or without regex.Here are a couple of examples of how I tried to mock setting json serialized data value:
mock.Regexp().ExpectSet(key, "(.+)", 5*time.Minute).SetVal("hey")
mock.Regexp().ExpectSet(key, "(\\[[\\d\\s]+\\])", 5*time.Minute).SetVal("hey")
Please let me know if I missed anything.