MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TestNormalizeTemplate

Function TestNormalizeTemplate

pkg/event/formatter_test.go:90–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestNormalizeTemplate(t *testing.T) {
91 assert.Equal(t, "{{.Seq}} {{.CPU}}", normalizeTemplate("{{ .Seq }} {{ .CPU }}"))
92}
93
94func TestIsTemplateBalanced(t *testing.T) {
95 ok, pos := isTemplateBalanced("{{ .Seq }} {{.CPU}}")

Callers

nothing calls this directly

Calls 2

normalizeTemplateFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected