gitee.com/h79/goutils@v1.22.10/common/debug/debug_test.go (about)

     1  package debug
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func TestDebug_WithDetail(t *testing.T) {
     9  	d := Debug{}
    10  	d.WithDetail("ADDD")
    11  	d.WithDetailFormat("ADDD=%d", 123242)
    12  	d.WithError(fmt.Errorf("xxxxxeee"))
    13  
    14  	t.Log(d.String())
    15  }