From b933a6f11f69a62f9994e0b3696dcd3bde15eff4 Mon Sep 17 00:00:00 2001 From: Christian Ezeani Date: Mon, 28 Oct 2024 20:26:43 +0100 Subject: [PATCH] Fix: constant unknown with invalid type --- tests/log_test.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/log_test.go diff --git a/tests/log_test.go b/tests/log_test.go new file mode 100644 index 0000000..ef03669 --- /dev/null +++ b/tests/log_test.go @@ -0,0 +1,27 @@ +package tests + +import ( + "testing" + + "github.com/Cyberpull/gokit/color" + "github.com/Cyberpull/gokit/log" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/suite" +) + +type LogTestSuite struct { + suite.Suite +} + +func (x *LogTestSuite) TestColor() { + require.NotPanics(x.T(), func() { + logger := log.Color(color.BgCyan) + logger.Println("Testing") + }) +} + +// =============================== + +func TestLog(t *testing.T) { + suite.Run(t, new(LogTestSuite)) +}