reqfakes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRouteHandler

type FakeRouteHandler struct {
	RouteStub func() string

	ExecuteStub func(req.Request) error

	IsAuthorizedStub func(*http.Request, *auth.Token) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeRouteHandler) Execute

func (fake *FakeRouteHandler) Execute(arg1 req.Request) error

func (*FakeRouteHandler) ExecuteArgsForCall

func (fake *FakeRouteHandler) ExecuteArgsForCall(i int) req.Request

func (*FakeRouteHandler) ExecuteCallCount

func (fake *FakeRouteHandler) ExecuteCallCount() int

func (*FakeRouteHandler) ExecuteReturns

func (fake *FakeRouteHandler) ExecuteReturns(result1 error)

func (*FakeRouteHandler) Invocations

func (fake *FakeRouteHandler) Invocations() map[string][][]interface{}

func (*FakeRouteHandler) IsAuthorized

func (fake *FakeRouteHandler) IsAuthorized(arg1 *http.Request, arg2 *auth.Token) (bool, error)

func (*FakeRouteHandler) IsAuthorizedArgsForCall

func (fake *FakeRouteHandler) IsAuthorizedArgsForCall(i int) (*http.Request, *auth.Token)

func (*FakeRouteHandler) IsAuthorizedCallCount

func (fake *FakeRouteHandler) IsAuthorizedCallCount() int

func (*FakeRouteHandler) IsAuthorizedReturns

func (fake *FakeRouteHandler) IsAuthorizedReturns(result1 bool, result2 error)

func (*FakeRouteHandler) Route

func (fake *FakeRouteHandler) Route() string

func (*FakeRouteHandler) RouteCallCount

func (fake *FakeRouteHandler) RouteCallCount() int

func (*FakeRouteHandler) RouteReturns

func (fake *FakeRouteHandler) RouteReturns(result1 string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL