blocky/config/config_suite_test.go

31 lines
432 B
Go

package config
import (
"testing"
"github.com/0xERR0R/blocky/log"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/sirupsen/logrus"
)
var (
logger *logrus.Entry
hook *log.MockLoggerHook
)
func init() {
log.Silence()
}
func TestConfig(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Config Suite")
}
func suiteBeforeEach() {
BeforeEach(func() {
logger, hook = log.NewMockEntry()
})
}