mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
It's too special for a utils package, and it als makes sense to put it right next to the thing that it is a dummy for.
14 lines
233 B
Go
14 lines
233 B
Go
package utils
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// NewDummyLog creates a new dummy Log for testing
|
|
func NewDummyLog() *logrus.Entry {
|
|
log := logrus.New()
|
|
log.Out = io.Discard
|
|
return log.WithField("test", "test")
|
|
}
|