0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 17:19:11 +00:00
netdata_netdata/src/go/logger/logger_test.go
Ilya Mashchenko 7fee1e5222
restructure go.d ()
* 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>
2024-07-02 15:32:34 +03:00

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)
})
}
}