mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
18 lines
209 B
Go
18 lines
209 B
Go
package cli
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
var logOutput strings.Builder
|
|
|
|
func TestMain(m *testing.M) {
|
|
l := zerolog.New(&logOutput)
|
|
mainLog.Store(&l)
|
|
os.Exit(m.Run())
|
|
}
|