123456789101112131415161718192021222324252627282930 |
- package lfs
- import (
- "flag"
- "fmt"
- "os"
- "testing"
- log "unknwon.dev/clog/v2"
- "gogs.io/gogs/internal/testutil"
- )
- func TestMain(m *testing.M) {
- flag.Parse()
- if !testing.Verbose() {
-
- log.Remove(log.DefaultConsoleName)
- err := log.New("noop", testutil.InitNoopLogger)
- if err != nil {
- fmt.Println(err)
- os.Exit(1)
- }
- }
- os.Exit(m.Run())
- }
|