(t *testing.T)
| 266 | } |
| 267 | |
| 268 | func 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 | |
| 278 | func Test_SetContextTemplate_ReturnsBuildError(t *testing.T) { |
| 279 | t.Parallel() |
nothing calls this directly
no test coverage detected