Borg/cmd/main_test.go
Snider 4fc86ee175
Update cmd/main_test.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-02 00:43:33 +00:00

18 lines
379 B
Go

package cmd
import (
"testing"
)
func TestExecute(t *testing.T) {
// This test simply checks that the Execute function can be called without error.
// It doesn't actually test any of the application's functionality.
rootCmd.SetArgs([]string{})
t.Cleanup(func() {
rootCmd.SetArgs(nil)
})
if err := Execute(); err != nil {
t.Errorf("Execute() failed: %v", err)
}
}
}