featurebase/test/client.go
2017-10-08 21:11:19 +03:00

19 lines
359 B
Go

package test
import (
"github.com/pilosa/pilosa"
)
// Client represents a test wrapper for pilosa.Client.
type Client struct {
*pilosa.Client
}
// MustNewClient returns a new instance of Client. Panic on error.
func MustNewClient(host string) *Client {
c, err := pilosa.NewClient(host, nil)
if err != nil {
panic(err)
}
return &Client{Client: c}
}