Skip to content

Commit

Permalink
updating mock client
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Nov 24, 2021
1 parent 9443355 commit a812cd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func (c *MockClient) LogQuery(f string, a ...interface{}) {}
func (c *MockClient) LogOp(f string, a ...interface{}) {}
func (c *MockClient) LogUid(f string, a ...interface{}) {}
func (c *MockClient) LogLog(f string, a ...interface{}) {}
func (c *MockClient) LogExport(f string, a ...interface{}) {}
func (c *MockClient) LogImport(f string, a ...interface{}) {}
func (c *MockClient) Clock() (time.Time, error) { return time.Now(), nil }
func (c *MockClient) Commit(d interface{}, e string, f interface{}) (uint, []byte, error) {
return 0, nil, nil
Expand Down Expand Up @@ -130,15 +132,15 @@ func (c *MockClient) Log(logType, action, query, dir string, nlogs, skip int, ex
return c.finalize(ans)
}

func (c *MockClient) Import(cat, content, filename, fp string, extras, ans interface{}) ([]byte, error) {
func (c *MockClient) Import(cat, content, filename, fp string, timeout time.Duration, extras, ans interface{}) ([]byte, error) {
c.Function = "import"
c.Extras = extras

b, err := c.finalize(ans)
return b, err
}

func (c *MockClient) Export(category string, extras, ans interface{}) (string, []byte, error) {
func (c *MockClient) Export(category string, timeout time.Duration, extras, ans interface{}) (string, []byte, error) {
c.Function = "export"
c.Extras = extras

Expand Down

0 comments on commit a812cd7

Please sign in to comment.