From 4876c5da23c6d653cca2dc72a77d72f75126298d Mon Sep 17 00:00:00 2001 From: Jonathan Whitaker Date: Mon, 23 Nov 2020 07:45:42 -0800 Subject: [PATCH] gocyclo breakup of test --- pipe_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pipe_test.go b/pipe_test.go index c19dae8..4b3d63a 100644 --- a/pipe_test.go +++ b/pipe_test.go @@ -1636,7 +1636,7 @@ var invalidForkErrorLeftSerialization = &Serialization{ }, } -func Test_Pipe_Load_Non_Terminated_Stream(b *testing.T) { +func Test_Pipe_Load_Bad_Stream(b *testing.T) { t := &tester{} p := NewPipe("pipe_id", t, t) @@ -1684,6 +1684,13 @@ func Test_Pipe_Load_Non_Terminated_Stream(b *testing.T) { if err := p.Load(invalidScriptVertexSerialization); err == nil { b.Error(fmt.Errorf("expected error")) } +} + + +func Test_Pipe_Load_Bad_Stream2(b *testing.T) { + t := &tester{} + + p := NewPipe("pipe_id", t, t) if err := p.Load(invalidScriptFuncTransmitSerialization); err == nil { b.Error(fmt.Errorf("expected error"))