@@ -14,7 +14,7 @@ func TestDefExecuteContext_Tracef(t *testing.T) {
14
14
wantLogs []interface {}
15
15
}{
16
16
{
17
- name : "" ,
17
+ name : "simple " ,
18
18
operation : func (e * DefExecuteContext ) {
19
19
e .Tracef ("aaa" )
20
20
e .Tracef ("bbb" )
@@ -23,7 +23,7 @@ func TestDefExecuteContext_Tracef(t *testing.T) {
23
23
wantLogs : []interface {}{"aaa" , "bbb" , "ccc" },
24
24
},
25
25
{
26
- name : "" ,
26
+ name : "format " ,
27
27
operation : func (e * DefExecuteContext ) {
28
28
e .Tracef ("int:%d" , 1 )
29
29
e .Tracef ("str:%s" , "aa" )
@@ -32,14 +32,14 @@ func TestDefExecuteContext_Tracef(t *testing.T) {
32
32
wantLogs : []interface {}{"int:1" , "str:aa" , "+v:{A:1}" },
33
33
},
34
34
{
35
- name : "" ,
35
+ name : "format with opt " ,
36
36
operation : func (e * DefExecuteContext ) {
37
37
e .Tracef ("str:%s" , "aa" , "ss" , TraceOpPersistAfterAction )
38
38
},
39
39
wantLogs : []interface {}{"str:aa%!(EXTRA string=ss)" , TraceOpPersistAfterAction },
40
40
},
41
41
{
42
- name : "" ,
42
+ name : "multi opt " ,
43
43
operation : func (e * DefExecuteContext ) {
44
44
e .Tracef ("str:%s" , TraceOpPersistAfterAction , TraceOpPersistAfterAction , TraceOpPersistAfterAction )
45
45
},
@@ -48,7 +48,7 @@ func TestDefExecuteContext_Tracef(t *testing.T) {
48
48
},
49
49
},
50
50
{
51
- name : "" ,
51
+ name : "not match format " ,
52
52
operation : func (e * DefExecuteContext ) {
53
53
e .Tracef ("int:%d" , 1 , TraceOpPersistAfterAction )
54
54
e .Trace ("cc" , TraceOpPersistAfterAction )
0 commit comments