Skip to content

Commit ee396a8

Browse files
committed
Fixed linter errors
1 parent 3710bf7 commit ee396a8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

pkg/grapher/grapher.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ const (
3030
)
3131

3232
const (
33-
None InterpolationType = iota
34-
Zero InterpolationType = iota
33+
// None InterpolationType provides a grapher that won't interpolate.
34+
None InterpolationType = iota
35+
// Zero InterpolationType provides a grapher that will interpolate using value zero.
36+
Zero InterpolationType = iota
37+
// PreviousValue InterpolationType provides a grapher
38+
// that will interpolate using the previous value.
3539
PreviousValue InterpolationType = iota
3640
)
3741

pkg/grapher/grapher_unit_test.go

+12-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ import (
1010
)
1111

1212
func TestGrapherCumulative(t *testing.T) {
13-
grapher := grapher.New[int](grapher.Cumulative, grapher.PreviousValue, "2006-01-02", 24*time.Hour)
13+
grapher := grapher.New[int](
14+
grapher.Cumulative,
15+
grapher.PreviousValue,
16+
"2006-01-02",
17+
24*time.Hour,
18+
)
1419

1520
dateNow := time.Now().UTC()
1621
for i := 0; i < 10; i++ {
@@ -37,7 +42,12 @@ func TestGrapherCumulative(t *testing.T) {
3742
}
3843

3944
func TestGrapherNormal(t *testing.T) {
40-
grapher := grapher.New[int](grapher.Normal, grapher.PreviousValue, "2006-01-02", 24*time.Hour)
45+
grapher := grapher.New[int](
46+
grapher.Normal,
47+
grapher.PreviousValue,
48+
"2006-01-02",
49+
24*time.Hour,
50+
)
4151

4252
dateNow := time.Now().UTC()
4353
for i := 0; i < 10; i++ {

0 commit comments

Comments
 (0)