mirror of https://github.com/v2ray/v2ray-core
test case for interface
parent
1531642768
commit
b7c3e1da66
|
@ -131,6 +131,10 @@ func TestPipeWriteMultiThread(t *testing.T) {
|
||||||
func TestInterfaces(t *testing.T) {
|
func TestInterfaces(t *testing.T) {
|
||||||
_ = (buf.Reader)(new(Reader))
|
_ = (buf.Reader)(new(Reader))
|
||||||
_ = (buf.TimeoutReader)(new(Reader))
|
_ = (buf.TimeoutReader)(new(Reader))
|
||||||
|
|
||||||
|
_ = (common.Interruptible)(new(Reader))
|
||||||
|
_ = (common.Interruptible)(new(Writer))
|
||||||
|
_ = (common.Closable)(new(Writer))
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkPipeReadWrite(b *testing.B) {
|
func BenchmarkPipeReadWrite(b *testing.B) {
|
||||||
|
|
Loading…
Reference in New Issue