Example #1
0
func TestInterface(t *testing.T) {

	assert.Implements(t, (*codecs.Codec)(nil), new(JsonCodec), "JsonCodec")

}
Example #2
0
func TestInterface(t *testing.T) {
	assert.Implements(t, (*CodecService)(nil), NewWebCodecService(), "WebCodecService")
}
func TestAPI_Interface(t *testing.T) {

	assert.Implements(t, (*APIResponder)(nil), new(GowebAPIResponder))

}
Example #4
0
func TestPipe(t *testing.T) {

	assert.Implements(t, (*Handler)(nil), new(Pipe))

}
func TestHTTP_Interface(t *testing.T) {

	assert.Implements(t, (*HTTPResponder)(nil), new(GowebHTTPResponder))

}