mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
backup test
This commit is contained in:
parent
108c644938
commit
45acf3c9b9
1 changed files with 15 additions and 0 deletions
15
ctl/backup_test.go
Normal file
15
ctl/backup_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package ctl
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
func TestBackupCommand_FileRequired(t *testing.T){
|
||||
cm := BackupCommand{}
|
||||
ctx := context.Background()
|
||||
err := cm.Run(ctx)
|
||||
if err.Error() != "output file required"{
|
||||
t.Fatalf("Command not working, expect: output file required, actual: '%s'", err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue