github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/api/reboot/export_test.go (about) 1 package reboot 2 3 import ( 4 "github.com/juju/juju/api/base/testing" 5 ) 6 7 // PatchFacadeCall patches the State's facade such that 8 // FacadeCall method calls are diverted to the provided 9 // function. 10 func PatchFacadeCall(p testing.Patcher, st *State, f func(request string, params, response interface{}) error) { 11 testing.PatchFacadeCall(p, &st.facade, f) 12 }