github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/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 }