(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestVarFuncFormat(t *testing.T) { |
| 71 | backend := InitForTesting(DEBUG) |
| 72 | SetFormatter(MustStringFormatter("%{shortfunc}")) |
| 73 | |
| 74 | var varFunc = func() string { |
| 75 | return logAndGetLine(backend) |
| 76 | } |
| 77 | |
| 78 | line := varFunc() |
| 79 | if "???" == line || "TestVarFuncFormat" == line || "varFunc" == line { |
| 80 | t.Errorf("Unexpected format: %s", line) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func TestFormatFuncName(t *testing.T) { |
| 85 | var tests = []struct { |
nothing calls this directly
no test coverage detected