MCPcopy
hub / github.com/projectdiscovery/uncover / Execute

Method Execute

integration-tests/source-test.go:252–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250type binaryedgeTestcases struct{}
251
252func (h binaryedgeTestcases) Execute() error {
253 token := os.Getenv("BINARYEDGE_API_KEY")
254 if token == "" {
255 return errors.New("missing binaryedge api key")
256 }
257
258 binaryedgeToken := fmt.Sprintf(`binaryedge: [%s]`, token)
259 _ = os.WriteFile(ConfigFile, []byte(binaryedgeToken), 0644)
260 defer func() {
261 _ = os.RemoveAll(ConfigFile)
262 }()
263 results, err := testutils.RunUncoverAndGetResults(debug, "-binaryedge", "1.1.1.1")
264
265 if err != nil {
266 return err
267 }
268 return expectResultsGreaterThanCount(results, 0)
269}
270
271type onypheTestcases struct{}
272

Callers

nothing calls this directly

Calls 2

RunUncoverAndGetResultsFunction · 0.92

Tested by

no test coverage detected