Skip to content

Commit

Permalink
gocyclo breakup of test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-whitaker committed Nov 23, 2020
1 parent 10f410b commit 4876c5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pipe_test.go
Expand Up @@ -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)
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit 4876c5d

Please sign in to comment.