Пример #1
0
func TestInterface(t *testing.T) {

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

}
Пример #2
0
func TestInterface(t *testing.T) {
	assert.Implements(t, (*CodecService)(nil), NewWebCodecService(), "WebCodecService")
}
Пример #3
0
func TestAPI_Interface(t *testing.T) {

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

}
Пример #4
0
func TestPipe(t *testing.T) {

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

}
Пример #5
0
func TestHTTP_Interface(t *testing.T) {

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

}