MCPcopy
hub / github.com/gofiber/fiber / Test_MustSetContextTemplate_PanicsOnBuildError

Function Test_MustSetContextTemplate_PanicsOnBuildError

log/context_test.go:268–276  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

266}
267
268func Test_MustSetContextTemplate_PanicsOnBuildError(t *testing.T) {
269 t.Parallel()
270
271 require.PanicsWithError(t, `logtemplate: unknown tag: "missing:value"`, func() {
272 MustSetContextTemplate(ContextConfig{
273 Format: "${missing:value}",
274 })
275 })
276}
277
278func Test_SetContextTemplate_ReturnsBuildError(t *testing.T) {
279 t.Parallel()

Callers

nothing calls this directly

Calls 1

MustSetContextTemplateFunction · 0.85

Tested by

no test coverage detected