This commit is contained in:
wxiaoguang
2026-04-25 15:59:50 +08:00
parent 9abb18c8fa
commit 3359227aec

View File

@@ -7,10 +7,16 @@ import (
"context"
"testing"
"code.gitea.io/gitea/models/unittest"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
)
func TestMain(m *testing.M) {
unittest.MainTest(m)
}
func TestDefaultCommand(t *testing.T) {
test := func(t *testing.T, args []string, expectedRetName string, expectedRetValid bool) {
called := false