Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ workspace:
clone:
git:
image: plugins/git:1
depth: 50
# Tests require the entire history (for some reason)
#depth: 50
tags: true

pipeline:
Expand Down
3 changes: 2 additions & 1 deletion blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

var testBlob = &Blob{
Expand Down Expand Up @@ -42,7 +43,7 @@ THE SOFTWARE.`

r, err := testBlob.Data()
assert.NoError(t, err)
assert.NotNil(t, r)
require.NotNil(t, r)

data, err := ioutil.ReadAll(r)
assert.NoError(t, err)
Expand Down
3 changes: 1 addition & 2 deletions tree_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func BenchmarkEntries_GetCommitsInfo(b *testing.B) {
{url: "https://github.com/torvalds/linux.git", name: "linux"},
}
for _, benchmark := range benchmarks {
b.StopTimer()
var commit *Commit
var entries Entries
if repoPath, err := setupGitRepo(benchmark.url, benchmark.name); err != nil {
Expand All @@ -51,7 +50,7 @@ func BenchmarkEntries_GetCommitsInfo(b *testing.B) {
b.Fatal(err)
}
entries.Sort()
b.StartTimer()
b.ResetTimer()
b.Run(benchmark.name, func(b *testing.B) {
for i := 0; i < b.N; i++ {
_, err := entries.GetCommitsInfo(commit, "")
Expand Down
28 changes: 28 additions & 0 deletions vendor/github.com/stretchr/testify/require/doc.go

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

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

Loading