Error case test for viewRun
This commit is contained in:
parent
32ee4db484
commit
8f55dbcf61
1 changed files with 10 additions and 0 deletions
|
|
@ -161,6 +161,16 @@ func TestViewRun(t *testing.T) {
|
|||
},
|
||||
wantStdout: "{\"id\":1}\n",
|
||||
},
|
||||
{
|
||||
name: "client error",
|
||||
opts: &viewOptions{},
|
||||
stubViewer: stubAutoLinkViewer{
|
||||
autolink: nil,
|
||||
err: testAutolinkClientViewError{},
|
||||
},
|
||||
expectedErr: testAutolinkClientViewError{},
|
||||
wantStderr: "",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue