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.

18 lines
314 B

  1. package log_test
  2. import (
  3. "testing"
  4. "github.com/tendermint/tmlibs/log"
  5. )
  6. func TestNopLogger(t *testing.T) {
  7. t.Parallel()
  8. logger := log.NewNopLogger()
  9. if err := logger.Info("Hello", "abc", 123); err != nil {
  10. t.Error(err)
  11. }
  12. if err := logger.With("def", "ghi").Debug(""); err != nil {
  13. t.Error(err)
  14. }
  15. }