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

Method LoadTest

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

Source from the content-addressed store, hash-verified

60}
61
62func (p *ParserAssert) LoadTest(filename string) error {
63 parserDump, err := dumps.LoadParserDump(filename)
64 if err != nil {
65 return fmt.Errorf("loading parser dump file: %w", err)
66 }
67
68 p.TestData = parserDump
69
70 return nil
71}
72
73func (p *ParserAssert) AssertFile(testFile string) error {
74 file, err := os.Open(p.File)

Callers 4

AutoGenFromFileMethod · 0.95
AssertFileMethod · 0.95
explainMethod · 0.45
newEvalCmdMethod · 0.45

Calls 1

LoadParserDumpFunction · 0.92

Tested by

no test coverage detected