Versions in this module Expand all Collapse all v1 v1.1.0 Oct 17, 2019 Changes in this version + type Stubber interface + Env func(key, value string) Stubber + Func func(funcPtr interface{}, returns ...interface{}) Stubber + Restore func() + Var func(originalPtr, fake interface{}) Stubber + func Env(k, v string) Stubber + func Func(funcPtr interface{}, returns ...interface{}) Stubber + func Var(original interface{}, fake interface{}) Stubber v1.0.0 Nov 9, 2018 Changes in this version + const Version + func FuncReturning(funcType reflect.Type, results ...interface{}) reflect.Value + type Stubs struct + func New() *Stubs + func Stub(varToStub interface{}, stubVal interface{}) *Stubs + func StubFunc(funcVarToStub interface{}, stubVal ...interface{}) *Stubs + func (s *Stubs) Reset() + func (s *Stubs) ResetSingle(varToStub interface{}) + func (s *Stubs) SetEnv(k, v string) *Stubs + func (s *Stubs) Stub(varToStub interface{}, stubVal interface{}) *Stubs + func (s *Stubs) StubFunc(funcVarToStub interface{}, stubVal ...interface{}) *Stubs + func (s *Stubs) UnsetEnv(k string) *Stubs