You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
274 B

4 years ago
  1. package log
  2. import (
  3. "testing"
  4. )
  5. func TestLog(t *testing.T) {
  6. Info("Test log.Infow", "value", 10)
  7. Infof("Test log.Infof %d", 10)
  8. Debugf("Test log.Debugf %d", 10)
  9. Error("Test log.Error", "value", 10)
  10. Errorf("Test log.Errorf %d", 10)
  11. Warnf("Test log.Warnf %d", 10)
  12. }