(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestStructFuncFormat(t *testing.T) { |
| 60 | backend := InitForTesting(DEBUG) |
| 61 | SetFormatter(MustStringFormatter("%{longfunc}")) |
| 62 | |
| 63 | var x structFunc |
| 64 | line := x.Log(backend) |
| 65 | if "structFunc.Log" != line { |
| 66 | t.Errorf("Unexpected format: %s", line) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func TestVarFuncFormat(t *testing.T) { |
| 71 | backend := InitForTesting(DEBUG) |
nothing calls this directly
no test coverage detected