MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / AutoGenFromFile

Method AutoGenFromFile

pkg/hubtest/parser_assert.go:51–60  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

49}
50
51func (p *ParserAssert) AutoGenFromFile(filename string) (string, error) {
52 err := p.LoadTest(filename)
53 if err != nil {
54 return "", err
55 }
56
57 ret := p.AutoGenParserAssert()
58
59 return ret, nil
60}
61
62func (p *ParserAssert) LoadTest(filename string) error {
63 parserDump, err := dumps.LoadParserDump(filename)

Callers 2

AssertFileMethod · 0.95
RunWithLogFileMethod · 0.45

Calls 2

LoadTestMethod · 0.95
AutoGenParserAssertMethod · 0.95

Tested by

no test coverage detected