Sfoglia il codice sorgente

test case for interface

Darien Raymond 7 anni fa
parent
commit
b7c3e1da66
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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) {