@ -12,7 +12,6 @@ import (
)
)
func TestLogger_SetupBasic ( t * testing . T ) {
func TestLogger_SetupBasic ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
cfg := Config { LogLevel : "INFO" }
cfg := Config { LogLevel : "INFO" }
@ -22,7 +21,6 @@ func TestLogger_SetupBasic(t *testing.T) {
}
}
func TestLogger_SetupInvalidLogLevel ( t * testing . T ) {
func TestLogger_SetupInvalidLogLevel ( t * testing . T ) {
t . Parallel ( )
cfg := Config { }
cfg := Config { }
_ , err := Setup ( cfg , nil )
_ , err := Setup ( cfg , nil )
@ -30,7 +28,6 @@ func TestLogger_SetupInvalidLogLevel(t *testing.T) {
}
}
func TestLogger_SetupLoggerErrorLevel ( t * testing . T ) {
func TestLogger_SetupLoggerErrorLevel ( t * testing . T ) {
t . Parallel ( )
cases := [ ] struct {
cases := [ ] struct {
desc string
desc string
@ -74,7 +71,6 @@ func TestLogger_SetupLoggerErrorLevel(t *testing.T) {
}
}
func TestLogger_SetupLoggerDebugLevel ( t * testing . T ) {
func TestLogger_SetupLoggerDebugLevel ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
cfg := Config { LogLevel : "DEBUG" }
cfg := Config { LogLevel : "DEBUG" }
var buf bytes . Buffer
var buf bytes . Buffer
@ -93,7 +89,6 @@ func TestLogger_SetupLoggerDebugLevel(t *testing.T) {
}
}
func TestLogger_SetupLoggerWithName ( t * testing . T ) {
func TestLogger_SetupLoggerWithName ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
cfg := Config {
cfg := Config {
LogLevel : "DEBUG" ,
LogLevel : "DEBUG" ,
@ -111,7 +106,6 @@ func TestLogger_SetupLoggerWithName(t *testing.T) {
}
}
func TestLogger_SetupLoggerWithJSON ( t * testing . T ) {
func TestLogger_SetupLoggerWithJSON ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
cfg := Config {
cfg := Config {
LogLevel : "DEBUG" ,
LogLevel : "DEBUG" ,
@ -136,7 +130,6 @@ func TestLogger_SetupLoggerWithJSON(t *testing.T) {
}
}
func TestLogger_SetupLoggerWithValidLogPath ( t * testing . T ) {
func TestLogger_SetupLoggerWithValidLogPath ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
tmpDir := testutil . TempDir ( t , t . Name ( ) )
tmpDir := testutil . TempDir ( t , t . Name ( ) )
@ -153,7 +146,6 @@ func TestLogger_SetupLoggerWithValidLogPath(t *testing.T) {
}
}
func TestLogger_SetupLoggerWithInValidLogPath ( t * testing . T ) {
func TestLogger_SetupLoggerWithInValidLogPath ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
cfg := Config {
cfg := Config {
@ -169,7 +161,6 @@ func TestLogger_SetupLoggerWithInValidLogPath(t *testing.T) {
}
}
func TestLogger_SetupLoggerWithInValidLogPathPermission ( t * testing . T ) {
func TestLogger_SetupLoggerWithInValidLogPathPermission ( t * testing . T ) {
t . Parallel ( )
require := require . New ( t )
require := require . New ( t )
tmpDir := "/tmp/" + t . Name ( )
tmpDir := "/tmp/" + t . Name ( )