mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 21:07:53 +00:00
remove unnecessary returns in stats_test.go
This commit is contained in:
parent
a10750009b
commit
0c06549a5b
1 changed files with 0 additions and 12 deletions
|
|
@ -107,7 +107,6 @@ func TestStatsCount_TopN(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
if _, err := e.Execute(context.Background(), "d", test.MustParse(`TopN(frame=f, n=2)`), nil, nil); err != nil {
|
||||
|
|
@ -137,7 +136,6 @@ func TestStatsCount_Bitmap(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
if _, err := e.Execute(context.Background(), "d", test.MustParse(`Bitmap(frame=f, row=0)`), nil, nil); err != nil {
|
||||
|
|
@ -168,7 +166,6 @@ func TestStatsCount_SetBitmapAttrs(t *testing.T) {
|
|||
t.Errorf("Expected SetBitmapAttrs, Results %s", name)
|
||||
}
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
if _, err := e.Execute(context.Background(), "d", test.MustParse(`SetRowAttrs(row=10, frame=f, foo="bar")`), nil, nil); err != nil {
|
||||
|
|
@ -200,7 +197,6 @@ func TestStatsCount_SetProfileAttrs(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
if _, err := e.Execute(context.Background(), "d", test.MustParse(`SetColumnAttrs(col=10, frame=f, foo="bar")`), nil, nil); err != nil {
|
||||
|
|
@ -225,7 +221,6 @@ func TestStatsCount_CreateIndex(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
http.DefaultClient.Do(test.MustNewHTTPRequest("POST", s.URL+"/index/i", nil))
|
||||
|
|
@ -254,7 +249,6 @@ func TestStatsCount_DeleteIndex(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
http.DefaultClient.Do(test.MustNewHTTPRequest("DELETE", s.URL+"/index/i", strings.NewReader("")))
|
||||
|
|
@ -286,7 +280,6 @@ func TestStatsCount_CreateFrame(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
http.DefaultClient.Do(test.MustNewHTTPRequest("POST", s.URL+"/index/i/frame/f", nil))
|
||||
|
|
@ -318,7 +311,6 @@ func TestStatsCount_DeleteFrame(t *testing.T) {
|
|||
}
|
||||
|
||||
called = true
|
||||
return
|
||||
},
|
||||
}
|
||||
http.DefaultClient.Do(test.MustNewHTTPRequest("DELETE", s.URL+"/index/i/frame/f", strings.NewReader("")))
|
||||
|
|
@ -335,17 +327,13 @@ type MockStats struct {
|
|||
func (s *MockStats) Count(name string, value int64, rate float64) {
|
||||
if s.mockCount != nil {
|
||||
s.mockCount(name, value, rate)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (s *MockStats) CountWithCustomTags(name string, value int64, rate float64, tags []string) {
|
||||
if s.mockCountWithTags != nil {
|
||||
s.mockCountWithTags(name, value, rate, tags)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (c *MockStats) Tags() []string { return nil }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue