snapshot
This commit is contained in:
parent
3cb33d48d3
commit
26eaa1d898
76 changed files with 1076 additions and 1717 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
|
||||
"github.com/blend/go-sdk/assert"
|
||||
"github.com/wcharczuk/go-chart/seq"
|
||||
"github.com/wcharczuk/go-chart/util"
|
||||
)
|
||||
|
||||
type mockValuesProvider struct {
|
||||
|
|
@ -14,14 +13,14 @@ type mockValuesProvider struct {
|
|||
}
|
||||
|
||||
func (m mockValuesProvider) Len() int {
|
||||
return util.Math.MinInt(len(m.X), len(m.Y))
|
||||
return MinInt(len(m.X), len(m.Y))
|
||||
}
|
||||
|
||||
func (m mockValuesProvider) GetValues(index int) (x, y float64) {
|
||||
if index < 0 {
|
||||
panic("negative index at GetValue()")
|
||||
}
|
||||
if index >= util.Math.MinInt(len(m.X), len(m.Y)) {
|
||||
if index >= MinInt(len(m.X), len(m.Y)) {
|
||||
panic("index is outside the length of m.X or m.Y")
|
||||
}
|
||||
x = m.X[index]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue