Gomonkey Versions Save

gomonkey is a library to make monkey patching in unit tests easy

v2.11.0

6 months ago

v2.10.1

11 months ago
  • Complete some go build tags and fix declaration on MacOS

v2.9.0

1 year ago
  • allow repeat patch
  • allow declare partial args
  • arg type can be interface
  • fix import for func dsl test

v2.8.0

1 year ago

ApplyMethodFunc

v2.7.0

2 years ago

You can enjoy the private method feature for all go versions, the list of verified go versions as follows:

  • go1.14 ok
  • go1.15 ok
  • go1.16 ok
  • go1.17 ok
  • go1.18 ok

v2.6.0

2 years ago

The target of mehod APIs no need to convert to reflect.Type.

v2.5.0

2 years ago
  • support a patch for a func/ function variable/method with specifying return value
  • support a patch for a method without passing receiver

v2.4.0

2 years ago

v2.3.1

2 years ago

go1.14 ok. go1.15 ok. go1.16 ok. go1.17 not ok, maybe because Go is about to support generics, the basic data structure has changed to some extent, including the reflect package.