github.com/ppphp/yayagf@v0.0.1/pkg/log/log_test.go (about)

     1  package log
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  func TestEntries(t *testing.T) {
    10  	require.NotNil(t, entries())
    11  }
    12  
    13  func TestDebugf(t *testing.T) {
    14  	Debugf("%v", "a")
    15  }
    16  
    17  func TestPrint(t *testing.T) {
    18  	Print("%v", "a")
    19  }
    20  
    21  func TestWarnf(t *testing.T) {
    22  	Warnf("%v", "a")
    23  }
    24  
    25  func TestErrorf(t *testing.T) {
    26  	Errorf("%v", "a")
    27  }
    28  
    29  func TestInfof(t *testing.T) {
    30  	Infof("%v", "a")
    31  }
    32  
    33  func TestGetLogger(t *testing.T) {
    34  	require.NotNil(t, GetLogger())
    35  }
    36  
    37  func TestTweak(t *testing.T) {
    38  	Tweak(Config{})
    39  }