github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/logger/logger_test.go (about)

     1  package logger
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/mdaxf/iac/framework/logs"
     7  )
     8  
     9  func TestInit(t *testing.T) {
    10  	type args struct {
    11  		config map[string]interface{}
    12  	}
    13  	tests := []struct {
    14  		name string
    15  		args args
    16  	}{
    17  		// TODO: Add test cases.
    18  	}
    19  	for _, tt := range tests {
    20  		t.Run(tt.name, func(t *testing.T) {
    21  			Init(tt.args.config)
    22  		})
    23  	}
    24  }
    25  
    26  func Test_setLogger(t *testing.T) {
    27  	type args struct {
    28  		loger   *logs.IACLogger
    29  		config  map[string]interface{}
    30  		logtype string
    31  	}
    32  	tests := []struct {
    33  		name string
    34  		args args
    35  	}{
    36  		// TODO: Add test cases.
    37  	}
    38  	for _, tt := range tests {
    39  		t.Run(tt.name, func(t *testing.T) {
    40  			setLogger(tt.args.loger, tt.args.config, tt.args.logtype)
    41  		})
    42  	}
    43  }
    44  
    45  func TestLog_Debug(t *testing.T) {
    46  	type args struct {
    47  		logmsg string
    48  	}
    49  	tests := []struct {
    50  		name string
    51  		l    *Log
    52  		args args
    53  	}{
    54  		// TODO: Add test cases.
    55  	}
    56  	for _, tt := range tests {
    57  		t.Run(tt.name, func(t *testing.T) {
    58  			tt.l.Debug(tt.args.logmsg)
    59  		})
    60  	}
    61  }
    62  
    63  func TestLog_Info(t *testing.T) {
    64  	type args struct {
    65  		logmsg string
    66  	}
    67  	tests := []struct {
    68  		name string
    69  		l    *Log
    70  		args args
    71  	}{
    72  		// TODO: Add test cases.
    73  	}
    74  	for _, tt := range tests {
    75  		t.Run(tt.name, func(t *testing.T) {
    76  			tt.l.Info(tt.args.logmsg)
    77  		})
    78  	}
    79  }
    80  
    81  func TestLog_Error(t *testing.T) {
    82  	type args struct {
    83  		logmsg string
    84  	}
    85  	tests := []struct {
    86  		name string
    87  		l    *Log
    88  		args args
    89  	}{
    90  		// TODO: Add test cases.
    91  	}
    92  	for _, tt := range tests {
    93  		t.Run(tt.name, func(t *testing.T) {
    94  			tt.l.Error(tt.args.logmsg)
    95  		})
    96  	}
    97  }