"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/expr/classic/reduce_test.go" between
grafana-8.0.0.tar.gz and grafana-8.0.1.tar.gz

About: Grafana is a visualization tool for monitoring, metric analytics and dashboards for Graphite, InfluxDB, Prometheus and many more.

reduce_test.go  (grafana-8.0.0):reduce_test.go  (grafana-8.0.1)
skipping to change at line 115 skipping to change at line 115
{ {
name: "count_non_null with no values", name: "count_non_null with no values",
reducer: classicReducer("count_non_null"), reducer: classicReducer("count_non_null"),
inputSeries: valBasedSeries(nil, nil), inputSeries: valBasedSeries(nil, nil),
expectedNumber: valBasedNumber(nil), expectedNumber: valBasedNumber(nil),
}, },
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
require.Equal(t, true, tt.reducer.ValidReduceFunc())
num := tt.reducer.Reduce(tt.inputSeries) num := tt.reducer.Reduce(tt.inputSeries)
require.Equal(t, tt.expectedNumber, num) require.Equal(t, tt.expectedNumber, num)
}) })
} }
} }
func TestDiffReducer(t *testing.T) { func TestDiffReducer(t *testing.T) {
var tests = []struct { var tests = []struct {
name string name string
inputSeries mathexp.Series inputSeries mathexp.Series
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)