Skip to content

Commit

Permalink
Update fetcher mock
Browse files Browse the repository at this point in the history
Was out of date
  • Loading branch information
AndrewSisley committed Oct 2, 2023
1 parent 6244c5b commit f71ee66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 136 deletions.
130 changes: 0 additions & 130 deletions db/fetcher/mocks/fetcher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions db/fetcher/mocks/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ package mocks
import (
"testing"

"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"

"github.com/stretchr/testify/mock"
)

Expand All @@ -33,9 +30,6 @@ func NewStubbedFetcher(t *testing.T) *Fetcher {
).Maybe().Return(nil)
f.EXPECT().Start(mock.Anything, mock.Anything).Maybe().Return(nil)
f.EXPECT().FetchNext(mock.Anything).Maybe().Return(nil, nil)
f.EXPECT().FetchNextDoc(mock.Anything, mock.Anything).Maybe().
Return(NewEncodedDocument(t), core.Doc{}, nil)
f.EXPECT().FetchNextDecoded(mock.Anything).Maybe().Return(&client.Document{}, nil)
f.EXPECT().Close().Maybe().Return(nil)
return f
}

0 comments on commit f71ee66

Please sign in to comment.