Skip to content

Commit 8c3838d

Browse files
authored
Merge pull request #336 from erizocosmico/feature/commit_files-table
*: implement commit_files table
2 parents 0eb8b19 + 3294fcd commit 8c3838d

15 files changed

+1384
-47
lines changed

commit_blobs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,6 @@ func (i *commitBlobsIter) NewIterator(repo *Repository) (RowRepoIter, error) {
179179
}, nil
180180
}
181181

182-
func (i *commitBlobsIter) Repository() string { return i.repo.ID }
183-
184-
func (i *commitBlobsIter) LastObject() string { return i.currCommit.Hash.String() }
185-
186182
func (i *commitBlobsIter) Next() (sql.Row, error) {
187183
for {
188184
if i.iter == nil {

commit_blobs_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestCommitBlobsTableRowIter(t *testing.T) {
9393
}
9494

9595
_, err = rowIter.Next()
96-
require.EqualError(err, io.EOF.Error())
96+
require.Equal(err, io.EOF)
9797
}
9898

9999
func TestCommitBlobsTablePushdown(t *testing.T) {
@@ -158,8 +158,7 @@ func TestCommitBlobsTablePushdown(t *testing.T) {
158158
}
159159

160160
_, err = rowIter.Next()
161-
require.EqualError(err, io.EOF.Error())
162-
161+
require.Equal(err, io.EOF)
163162
})
164163
}
165164
}

0 commit comments

Comments
 (0)