log_test.go 290 B

123456789101112131415
  1. package util
  2. import (
  3. "testing"
  4. )
  5. func TestInfof(t *testing.T) {
  6. Debugf("hello world : %s", "Debugf")
  7. Infof("hello world : %s", "Infof")
  8. Warnf("hello world : %s", "Warnf")
  9. Errorf("hello world : %s", "Errorf")
  10. //Fatalf("hello world : %s", "Fatalf")
  11. //Painc(errors.New("异常"))
  12. }