Documentation ¶
Index ¶
- func BeCreated() *BaseMatcher
- func BeRunning() *BaseMatcher
- func BindedWith(expected map[string]string) *BaseMatcher
- func Handle(method string) *handleMatcher
- func HaveHeader(name string) *haveHeaderMatcher
- type EngineMock
- func (e *EngineMock) DELETE(relativePath string, handlers ...gin.HandlerFunc)
- func (e *EngineMock) FmtRoutes() (s string)
- func (e *EngineMock) GET(relativePath string, handlers ...gin.HandlerFunc)
- func (e *EngineMock) IsRunning() bool
- func (e *EngineMock) POST(relativePath string, handlers ...gin.HandlerFunc)
- func (e *EngineMock) PUT(relativePath string, handlers ...gin.HandlerFunc)
- func (e *EngineMock) Port() string
- func (e *EngineMock) Routes() []string
- func (e *EngineMock) Run(port string) error
- func (e *EngineMock) String() string
- type ResourceMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EngineMock ¶
type EngineMock struct {
// contains filtered or unexported fields
}
func (*EngineMock) DELETE ¶
func (e *EngineMock) DELETE(relativePath string, handlers ...gin.HandlerFunc)
func (*EngineMock) FmtRoutes ¶
func (e *EngineMock) FmtRoutes() (s string)
func (*EngineMock) GET ¶
func (e *EngineMock) GET(relativePath string, handlers ...gin.HandlerFunc)
func (*EngineMock) IsRunning ¶
func (e *EngineMock) IsRunning() bool
func (*EngineMock) POST ¶
func (e *EngineMock) POST(relativePath string, handlers ...gin.HandlerFunc)
func (*EngineMock) PUT ¶
func (e *EngineMock) PUT(relativePath string, handlers ...gin.HandlerFunc)
func (*EngineMock) Port ¶
func (e *EngineMock) Port() string
func (*EngineMock) Routes ¶
func (e *EngineMock) Routes() []string
func (*EngineMock) Run ¶
func (e *EngineMock) Run(port string) error
func (*EngineMock) String ¶
func (e *EngineMock) String() string
type ResourceMock ¶
type ResourceMock struct {
// contains filtered or unexported fields
}
func Resource ¶
func Resource() *ResourceMock
func (*ResourceMock) Form ¶
func (r *ResourceMock) Form() interface{}
func (*ResourceMock) IsBindedWith ¶
func (r *ResourceMock) IsBindedWith(m map[string]string) (ok bool)
func (*ResourceMock) IsCreated ¶
func (r *ResourceMock) IsCreated() bool
func (*ResourceMock) Save ¶
func (r *ResourceMock) Save() (ok bool)
func (*ResourceMock) String ¶
func (r *ResourceMock) String() string
func (*ResourceMock) Url ¶
func (r *ResourceMock) Url() string
Click to show internal directories.
Click to hide internal directories.