Explorar o código

test case for interface

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
b7c3e1da66
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      transport/pipe/pipe_test.go

+ 4 - 0
transport/pipe/pipe_test.go

@@ -131,6 +131,10 @@ func TestPipeWriteMultiThread(t *testing.T) {
 func TestInterfaces(t *testing.T) {
 	_ = (buf.Reader)(new(Reader))
 	_ = (buf.TimeoutReader)(new(Reader))
+
+	_ = (common.Interruptible)(new(Reader))
+	_ = (common.Interruptible)(new(Writer))
+	_ = (common.Closable)(new(Writer))
 }
 
 func BenchmarkPipeReadWrite(b *testing.B) {