Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChiV5Reporter ¶
type ChiV5Reporter struct {
// contains filtered or unexported fields
}
ChiV5Reporter tracks visited routes of chi router. It is used to check if all routes have been tested.
func NewChiV5Reporter ¶
func NewChiV5Reporter() *ChiV5Reporter
NewChiV5Reporter creates a new chi reporter.
func (*ChiV5Reporter) Register ¶
func (rep *ChiV5Reporter) Register(router chi.Router)
Register registers chi router for testing.
func (*ChiV5Reporter) Report ¶
func (rep *ChiV5Reporter) Report() Report
Report returns a report of visited routes.
type EchoV4Reporter ¶
type EchoV4Reporter struct {
// contains filtered or unexported fields
}
EchoV4Reporter tracks visited routes of echo router. It is used to check if all routes have been tested.
func NewEchoV4Reporter ¶
func NewEchoV4Reporter() *EchoV4Reporter
NewReporter creates a new echo reporter.
func (*EchoV4Reporter) Register ¶
func (rep *EchoV4Reporter) Register(router *echo.Echo)
Register registers echo router for testing.
func (*EchoV4Reporter) Report ¶
func (rep *EchoV4Reporter) Report() Report
Report returns a report of visited routes.
func (*EchoV4Reporter) Visitor ¶
func (rep *EchoV4Reporter) Visitor(next echo.HandlerFunc) echo.HandlerFunc
Visitor is a middleware that tracks visited routes.
type GinReporter ¶
type GinReporter struct {
// contains filtered or unexported fields
}
GinReporter tracks visited routes of gin router. It is used to check if all routes have been tested.
func (*GinReporter) Register ¶
func (rep *GinReporter) Register(engine *gin.Engine)
Register registers gin router for testing.
func (*GinReporter) Report ¶
func (rep *GinReporter) Report() Report
Report returns a report of visited routes.
func (*GinReporter) Visitor ¶
func (rep *GinReporter) Visitor(ctx *gin.Context)
Visitor is a middleware that tracks visited routes.
type Report ¶
Report is a report of visited routes.
type StdHttpReporter ¶
type StdHttpReporter struct {
// contains filtered or unexported fields
}
StdHttpReporter tracks visited routes of std http router. It is used to check if all routes have been tested.
func NewStdHttpReporter ¶
func NewStdHttpReporter() *StdHttpReporter
NewStdHttpReporter creates a new std http reporter.
func (*StdHttpReporter) Register ¶
func (rep *StdHttpReporter) Register(pattern string)
Register registers std http router for testing.
func (*StdHttpReporter) Report ¶
func (rep *StdHttpReporter) Report() Report
Report returns a report of visited routes.