Gomonkey Versions Save

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

v2.3.0

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.

v2.2.0

2 years ago

Supported Platform

  • MAC OS X arm64
  • Linux arm64
  • Windows arm64

v2.1.0

3 years ago

v2.0.2

3 years ago

Relative Features:

  • support patches of a specified sequence for a function
  • support patches of a specified sequence for a member method
  • support patches of a specified sequence for a interface
  • support patches of a specified sequence for a function variable

v2.0.1

4 years ago

from vx.y to vx.y.z

v1.1

4 years ago

New features

  • surpport Windows amd64
  • support a patch for a interface by reusing old API
  • support patches of a specified sequence for a interface by reusing old API

v1.0

5 years ago

Features

  • support a patch for a function
  • support a patch for a member method
  • support a patch for a global variable
  • support a patch for a function variable
  • support patches of a specified sequence for a function
  • support patches of a specified sequence for a member method
  • support patches of a specified sequence for a function variable