featurebase/test/client.go

19 lines
395 B
Go

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