From 45acf3c9b952d81889ecaed6b66b6ab557826825 Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Thu, 25 May 2017 11:31:36 -0500 Subject: [PATCH] backup test --- ctl/backup_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ctl/backup_test.go diff --git a/ctl/backup_test.go b/ctl/backup_test.go new file mode 100644 index 000000000..149157953 --- /dev/null +++ b/ctl/backup_test.go @@ -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) + } +}