From c2782ec59730d0839cc45666f76377b7bb2feeff Mon Sep 17 00:00:00 2001 From: Kairo de Araujo Date: Fri, 22 Dec 2023 09:17:02 +0100 Subject: [PATCH] test: Minor change to increase the coverage Running `rootCmd.Execute` is the same as`Execute`, but for coverage it has an increase as it is a function declared in `cmd`. Signed-off-by: Kairo de Araujo --- cmd/archivistactl/cmd/root_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/archivistactl/cmd/root_test.go b/cmd/archivistactl/cmd/root_test.go index 027296cf..c3b888b7 100644 --- a/cmd/archivistactl/cmd/root_test.go +++ b/cmd/archivistactl/cmd/root_test.go @@ -35,7 +35,7 @@ func (ut *UTRootSuite) Test_Root() { rootCmd.SetOut(output) rootCmd.SetErr(output) rootCmd.SetArgs([]string{"help"}) - err := rootCmd.Execute() + err := Execute() if err != nil { ut.FailNow(err.Error()) }