(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func TestDebugPrintLoadTemplate(t *testing.T) { |
| 90 | re := captureOutput(t, func() { |
| 91 | SetMode(DebugMode) |
| 92 | templ := template.Must(template.New("").Delims("{[{", "}]}").ParseGlob("./testdata/template/hello.tmpl")) |
| 93 | debugPrintLoadTemplate(templ) |
| 94 | SetMode(TestMode) |
| 95 | }) |
| 96 | assert.Regexp(t, `^\[GIN-debug\] Loaded HTML Templates \(2\): \n(\t- \n|\t- hello\.tmpl\n){2}\n`, re) |
| 97 | } |
| 98 | |
| 99 | func TestDebugPrintWARNINGSetHTMLTemplate(t *testing.T) { |
| 100 | re := captureOutput(t, func() { |
nothing calls this directly
no test coverage detected