github.com/goadesign/goa/goatest


goatest

import "github.com/goadesign/goa/goatest"

Overview

Index

Package files

testing.go

func Service

func Service(logBuf *bytes.Buffer, respSetter ResponseSetterFunc) *goa.Service

Service provide a general goa.Service used for testing purposes

type ResponseSetterFunc

type ResponseSetterFunc func(resp interface{})

ResponseSetterFunc func

func (ResponseSetterFunc) Encode

func (r ResponseSetterFunc) Encode(v interface{}) error

Encode implements a dummy encoder that returns the value being encoded

type TInterface

type TInterface interface {
    Errorf(format string, args ...interface{})
    Fatalf(format string, args ...interface{})
}

TInterface is an interface for go’s testing.T


Generated by godoc2md