mirror of
https://github.com/netdata/netdata.git
synced 2025-04-13 17:19:11 +00:00

* restruture go.d * update gitignore * update ci files * update gen_docs_integrations.py * update link in go.d conf files * update go.d modules metadata files * update metadata files * update packaging * add log files * integrations commit * update get-go-version.py * go fmt * fix packaging * update go.d readme --------- Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
21 lines
350 B
Go
21 lines
350 B
Go
package logger
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNew(t *testing.T) {
|
|
tests := map[string]*Logger{
|
|
"default logger": New(),
|
|
"nil logger": nil,
|
|
}
|
|
|
|
for name, logger := range tests {
|
|
t.Run(name, func(t *testing.T) {
|
|
f := func() { logger.Infof("test %s", "test") }
|
|
assert.NotPanics(t, f)
|
|
})
|
|
}
|
|
}
|