MCPcopy
hub / github.com/vulcand/vulcand / TestBackendNew

Method TestBackendNew

engine/model_test.go:91–97  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

89}
90
91func (s *BackendSuite) TestBackendNew(c *C) {
92 b, err := NewHTTPBackend("b1", HTTPBackendSettings{})
93 c.Assert(err, IsNil)
94 c.Assert(b.Type, Equals, HTTP)
95 c.Assert(b.GetId(), Equals, "b1")
96 c.Assert(b.String(), Not(Equals), "")
97}
98
99func (s *BackendSuite) TestNewBackendWithOptions(c *C) {
100 options := HTTPBackendSettings{

Callers

nothing calls this directly

Calls 3

NewHTTPBackendFunction · 0.85
GetIdMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected