From b7c3e1da66f2417b713a22b2427f62ebdc946474 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 20 Feb 2019 22:57:13 +0100 Subject: [PATCH] test case for interface --- transport/pipe/pipe_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport/pipe/pipe_test.go b/transport/pipe/pipe_test.go index 65078b4a4..1f7fb9563 100644 --- a/transport/pipe/pipe_test.go +++ b/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) {