Skip to content

Commit bb135bc

Browse files
committed
add create backup is nil testcaste
1 parent ad6b8cb commit bb135bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/cmd/volume/backup/create/create_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ func TestOutputResult(t *testing.T) {
239239
args: args{},
240240
wantErr: true,
241241
},
242+
{
243+
name: "backup is nil",
244+
args: args{
245+
backup: nil,
246+
},
247+
wantErr: true,
248+
},
242249
{
243250
name: "minimal backup",
244251
args: args{

0 commit comments

Comments
 (0)