Documentation ¶
Index ¶
- Constants
- func ReadDocument(t *testing.T, filename string) *meta.Document
- func ReadFixture(filename string) ([]byte, error)
- func RunWithTestServer(ctx context.Context, service service, ...) error
- func WriteResult(t *testing.T, data []byte)
- func WriteResultWithExt(t *testing.T, data []byte, postfix string)
- type DocumentTest
- type TestDocData
Constants ¶
View Source
const LongText = `` /* 2052-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ReadFixture ¶
func RunWithTestServer ¶
func RunWithTestServer(ctx context.Context, service service, runner func(server *grpc.Server, conn *grpc.ClientConn) error) error
Provided with a HoardService executes runner in the context of a client-server connection over test buffer connection with all the hoard GRPC services registered on service
func WriteResult ¶
Types ¶
type DocumentTest ¶
type DocumentTest struct { Meta meta.Meta `json:"meta"` Data TestDocData `json:"data"` }
type TestDocData ¶
Click to show internal directories.
Click to hide internal directories.