(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestRedactf(t *testing.T) { |
| 39 | backend := InitForTesting(DEBUG) |
| 40 | password := Password("123456") |
| 41 | log := MustGetLogger("test") |
| 42 | log.Debugf("foo %s", password) |
| 43 | if "foo ******" != MemoryRecordN(backend, 0).Formatted(0) { |
| 44 | t.Errorf("redacted line: %v", MemoryRecordN(backend, 0).Formatted(0)) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func TestPrivateBackend(t *testing.T) { |
| 49 | stdBackend := InitForTesting(DEBUG) |
nothing calls this directly
no test coverage detected