Esempio n. 1
0
func (s *S) TestShouldBeRegistered(c *check.C) {
	s.cf.MkGlobal()
	router.Register("route53", createRouter)
	got, err := router.Get("route53")
	c.Assert(err, check.IsNil)
	_, ok := got.(route53Router)
	c.Assert(ok, check.Equals, true)
}
Esempio n. 2
0
func init() {
	router.Register(routerName, createRouter)
}