esquery/count_test.go

18 lines
280 B
Go

package esquery
import "testing"
func TestCount(t *testing.T) {
runMapTests(t, []mapTest{
{
"a simple count request",
Count(MatchAll()),
map[string]interface{}{
"query": map[string]interface{}{
"match_all": map[string]interface{}{},
},
},
},
})
}