Adds support for go mod (finally) (#164)

This commit is contained in:
Will Charczuk 2020-11-22 16:45:10 -08:00 committed by GitHub
parent 962b9abdec
commit c1468e8ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 1162 additions and 965 deletions

View file

@ -4,11 +4,11 @@ import (
"bytes"
"testing"
"github.com/blend/go-sdk/assert"
"github.com/wcharczuk/go-chart/v2/testutil"
)
func TestLegend(t *testing.T) {
assert := assert.New(t)
// replaced new assertions helper
graph := Chart{
Series: []Series{
@ -26,6 +26,6 @@ func TestLegend(t *testing.T) {
}
buf := bytes.NewBuffer([]byte{})
err := graph.Render(PNG, buf)
assert.Nil(err)
assert.NotZero(buf.Len())
testutil.AssertNil(t, err)
testutil.AssertNotZero(t, buf.Len())
}