Documentation ¶
Index ¶
- Variables
- type FakeApp
- type RouterSuite
- func (s *RouterSuite) SetUpSuite(c *check.C)
- func (s *RouterSuite) SetUpTest(c *check.C)
- func (s *RouterSuite) TearDownSuite(c *check.C)
- func (s *RouterSuite) TearDownTest(c *check.C)
- func (s *RouterSuite) TestCNames(c *check.C)
- func (s *RouterSuite) TestGetInfo(c *check.C)
- func (s *RouterSuite) TestGetStatus(c *check.C)
- func (s *RouterSuite) TestRemoveBackendAfterSwap(c *check.C)
- func (s *RouterSuite) TestRemoveBackendKeepsInRouter(c *check.C)
- func (s *RouterSuite) TestRemoveBackendWithCName(c *check.C)
- func (s *RouterSuite) TestRemoveBackendWithoutRemoveRoutes(c *check.C)
- func (s *RouterSuite) TestRouteAddBackendAndRoute(c *check.C)
- func (s *RouterSuite) TestRouteAddBackendOptsAndRoute(c *check.C)
- func (s *RouterSuite) TestRouteAddDupBackend(c *check.C)
- func (s *RouterSuite) TestRouteAddDupCName(c *check.C)
- func (s *RouterSuite) TestRouteAddRouteInvalidBackend(c *check.C)
- func (s *RouterSuite) TestRouteAddRoutes(c *check.C)
- func (s *RouterSuite) TestRouteAddRoutesIgnoreRepeated(c *check.C)
- func (s *RouterSuite) TestRouteRemoveRouteAndBackend(c *check.C)
- func (s *RouterSuite) TestRouteRemoveRoutes(c *check.C)
- func (s *RouterSuite) TestRouteRemoveRoutesIgnoreNonExisting(c *check.C)
- func (s *RouterSuite) TestSetCNameInvalidBackend(c *check.C)
- func (s *RouterSuite) TestSetCNameSubdomainError(c *check.C)
- func (s *RouterSuite) TestSetHealthcheck(c *check.C)
- func (s *RouterSuite) TestSetUnsetCName(c *check.C)
- func (s *RouterSuite) TestSwap(c *check.C)
- func (s *RouterSuite) TestSwapTwice(c *check.C)
- type URLList
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForcedFailure = errors.New("Forced failure")
View Source
var FakeRouter = newFakeRouter()
View Source
var HCRouter = hcRouter{/* contains filtered or unexported fields */}
View Source
var HostEquals check.Checker = &urlHostChecker{ check.CheckerInfo{Name: "HostEquals", Params: []string{"obtained", "expected"}}, }
View Source
var InfoRouter = infoRouter{ Info: make(map[string]string), // contains filtered or unexported fields }
View Source
var OptsRouter = optsRouter{ Opts: make(map[string]map[string]string), // contains filtered or unexported fields }
View Source
var StatusRouter = statusRouter{ Status: router.BackendStatusReady, // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type RouterSuite ¶
type RouterSuite struct { Router router.Router SetUpSuiteFunc func(c *check.C) SetUpTestFunc func(c *check.C) TearDownSuiteFunc func(c *check.C) TearDownTestFunc func(c *check.C) }
func (*RouterSuite) SetUpSuite ¶
func (s *RouterSuite) SetUpSuite(c *check.C)
func (*RouterSuite) SetUpTest ¶
func (s *RouterSuite) SetUpTest(c *check.C)
func (*RouterSuite) TearDownSuite ¶
func (s *RouterSuite) TearDownSuite(c *check.C)
func (*RouterSuite) TearDownTest ¶
func (s *RouterSuite) TearDownTest(c *check.C)
func (*RouterSuite) TestCNames ¶
func (s *RouterSuite) TestCNames(c *check.C)
func (*RouterSuite) TestGetInfo ¶
func (s *RouterSuite) TestGetInfo(c *check.C)
func (*RouterSuite) TestGetStatus ¶
func (s *RouterSuite) TestGetStatus(c *check.C)
func (*RouterSuite) TestRemoveBackendAfterSwap ¶
func (s *RouterSuite) TestRemoveBackendAfterSwap(c *check.C)
func (*RouterSuite) TestRemoveBackendKeepsInRouter ¶
func (s *RouterSuite) TestRemoveBackendKeepsInRouter(c *check.C)
func (*RouterSuite) TestRemoveBackendWithCName ¶
func (s *RouterSuite) TestRemoveBackendWithCName(c *check.C)
func (*RouterSuite) TestRemoveBackendWithoutRemoveRoutes ¶
func (s *RouterSuite) TestRemoveBackendWithoutRemoveRoutes(c *check.C)
func (*RouterSuite) TestRouteAddBackendAndRoute ¶
func (s *RouterSuite) TestRouteAddBackendAndRoute(c *check.C)
func (*RouterSuite) TestRouteAddBackendOptsAndRoute ¶
func (s *RouterSuite) TestRouteAddBackendOptsAndRoute(c *check.C)
func (*RouterSuite) TestRouteAddDupBackend ¶
func (s *RouterSuite) TestRouteAddDupBackend(c *check.C)
func (*RouterSuite) TestRouteAddDupCName ¶
func (s *RouterSuite) TestRouteAddDupCName(c *check.C)
func (*RouterSuite) TestRouteAddRouteInvalidBackend ¶
func (s *RouterSuite) TestRouteAddRouteInvalidBackend(c *check.C)
func (*RouterSuite) TestRouteAddRoutes ¶
func (s *RouterSuite) TestRouteAddRoutes(c *check.C)
func (*RouterSuite) TestRouteAddRoutesIgnoreRepeated ¶
func (s *RouterSuite) TestRouteAddRoutesIgnoreRepeated(c *check.C)
func (*RouterSuite) TestRouteRemoveRouteAndBackend ¶
func (s *RouterSuite) TestRouteRemoveRouteAndBackend(c *check.C)
func (*RouterSuite) TestRouteRemoveRoutes ¶
func (s *RouterSuite) TestRouteRemoveRoutes(c *check.C)
func (*RouterSuite) TestRouteRemoveRoutesIgnoreNonExisting ¶
func (s *RouterSuite) TestRouteRemoveRoutesIgnoreNonExisting(c *check.C)
func (*RouterSuite) TestSetCNameInvalidBackend ¶
func (s *RouterSuite) TestSetCNameInvalidBackend(c *check.C)
func (*RouterSuite) TestSetCNameSubdomainError ¶
func (s *RouterSuite) TestSetCNameSubdomainError(c *check.C)
func (*RouterSuite) TestSetHealthcheck ¶
func (s *RouterSuite) TestSetHealthcheck(c *check.C)
func (*RouterSuite) TestSetUnsetCName ¶
func (s *RouterSuite) TestSetUnsetCName(c *check.C)
func (*RouterSuite) TestSwap ¶
func (s *RouterSuite) TestSwap(c *check.C)
func (*RouterSuite) TestSwapTwice ¶
func (s *RouterSuite) TestSwapTwice(c *check.C)
Click to show internal directories.
Click to hide internal directories.