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

Function testFile

pkg/parser/parsing_test.go:377–388  ·  view source on GitHub ↗
(t require.TestingT, testSet []TestFile, pctx UnixParserCtx, nodes []Node)

Source from the content-addressed store, hash-verified

375}
376
377func testFile(t require.TestingT, testSet []TestFile, pctx UnixParserCtx, nodes []Node) bool {
378 log.Warning("Going to process one test set")
379
380 for _, tf := range testSet {
381 // func testSubSet(testSet TestFile, pctx UnixParserCtx, nodes []Node) (bool, error) {
382 testOk, err := testSubSet(tf, pctx, nodes)
383 require.NoError(t, err, "test failed")
384 assert.True(t, testOk, "failed test: %+v", tf)
385 }
386
387 return true
388}
389
390/*THIS IS ONLY PRESENT TO BE ABLE TO GENERATE DOCUMENTATION OF EXISTING PATTERNS*/
391type Pair struct {

Callers 1

testOneParserFunction · 0.70

Calls 1

testSubSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…