MCPcopy Create free account
hub / github.com/brimdata/super / TestHost_AddFromReader_malformedPatterns

Function TestHost_AddFromReader_malformedPatterns

pkg/grok/host_test.go:86–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func TestHost_AddFromReader_malformedPatterns(t *testing.T) {
87 s := `
88ONE \d
89TWO %{THREE:two}`
90 require.Error(t, New().AddFromReader(strings.NewReader(s)))
91}
92
93func TestHost_inject(t *testing.T) {
94 h := New()

Callers

nothing calls this directly

Calls 4

AddFromReaderMethod · 0.80
NewFunction · 0.70
ErrorMethod · 0.45
NewReaderMethod · 0.45

Tested by

no test coverage detected