yq/pkg/yqlib/lib_test.go
Carolyn Van Slyck dbcf6be8ff
Add accessor for the yq logger instance
Allow consumers of yqlib to customize the logger instance.

Closes #432

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
2020-12-30 10:39:08 -06:00

11 lines
178 B
Go

package yqlib
import "testing"
func TestGetLogger(t *testing.T) {
l := GetLogger()
if l != log {
t.Fatal("GetLogger should return the yq logger instance, not a copy")
}
}