Documentation ¶
Overview ¶
package gt is for GOPATH testing for vendor.
Index ¶
- type FileSpec
- type GopathTest
- func (g *GopathTest) Check(err error)
- func (g *GopathTest) Clean()
- func (g *GopathTest) Current() string
- func (g *GopathTest) Fatal(args ...interface{})
- func (g *GopathTest) In(pkg string)
- func (g *GopathTest) Path(pkg string) string
- func (g *GopathTest) Remove(at string)
- func (g *GopathTest) Setup(at string, files ...FileSpec)
- type HttpHandler
- type VcsHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSpec ¶
func FilePkgBuild ¶ added in v1.0.2
type GopathTest ¶
func New ¶
func New(t *testing.T) *GopathTest
func (*GopathTest) Check ¶
func (g *GopathTest) Check(err error)
Check is fatal to the test if err is not nil.
func (*GopathTest) Clean ¶
func (g *GopathTest) Clean()
func (*GopathTest) Fatal ¶
func (g *GopathTest) Fatal(args ...interface{})
func (*GopathTest) In ¶
func (g *GopathTest) In(pkg string)
In sets the current directory as an import path.
func (*GopathTest) Path ¶
func (g *GopathTest) Path(pkg string) string
Get path from package import path pkg.
func (*GopathTest) Remove ¶
func (g *GopathTest) Remove(at string)
func (*GopathTest) Setup ¶
func (g *GopathTest) Setup(at string, files ...FileSpec)
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
func NewHttpHandler ¶
func NewHttpHandler(g *GopathTest, vcsName string) *HttpHandler
func (*HttpHandler) Close ¶
func (h *HttpHandler) Close() error
func (*HttpHandler) HttpAddr ¶
func (h *HttpHandler) HttpAddr() string
func (*HttpHandler) ServeHTTP ¶
func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HttpHandler) Setup ¶
func (h *HttpHandler) Setup() VcsHandle
Setup returns type with Remove function that can be defer'ed.
Click to show internal directories.
Click to hide internal directories.