1 Star 0 Fork 0

ryancartoon / sensu-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mock_generic.go 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
package testing
import (
"github.com/sensu/sensu-go/cli/client"
"github.com/sensu/sensu-go/types"
)
// Delete ...
func (c *MockClient) Delete(path string) error {
args := c.Called(path)
return args.Error(0)
}
// Get ...
func (c *MockClient) Get(path string, obj interface{}) error {
args := c.Called(path, obj)
return args.Error(0)
}
// List ...
func (c *MockClient) List(path string, objs interface{}, options *client.ListOptions) error {
args := c.Called(path, objs, options)
return args.Error(0)
}
// Post ...
func (c *MockClient) Post(path string, obj interface{}) error {
args := c.Called(path, obj)
return args.Error(0)
}
// Put ...
func (c *MockClient) Put(path string, obj interface{}) error {
args := c.Called(path, obj)
return args.Error(0)
}
// PutResource ...
func (c *MockClient) PutResource(r types.Wrapper) error {
args := c.Called(r)
return args.Error(0)
}
1
https://gitee.com/ryancartoon/sensu-go.git
git@gitee.com:ryancartoon/sensu-go.git
ryancartoon
sensu-go
sensu-go
v5.10.1

搜索帮助