Skip to content

Commit

Permalink
test: Minor change to increase the coverage
Browse files Browse the repository at this point in the history
Running rootCmd.Execute is the same as Execute, but for coverage it has
a increate as it is a function declared in `cmd`.

Signed-off-by: Kairo de Araujo <kairo.araujo@testifysec.com>
  • Loading branch information
kairoaraujo committed Dec 22, 2023
1 parent e27a40f commit 881a306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/archivistactl/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 881a306

Please sign in to comment.