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

Method Execute

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

Source from the content-addressed store, hash-verified

130type netlasTestcases struct{}
131
132func (h netlasTestcases) Execute() error {
133 token := os.Getenv("NETLAS_API_KEY")
134 if token == "" {
135 return errors.New("missing netlas api key")
136 }
137 netlasToken := fmt.Sprintf(`netlas: [%s]`, token)
138 _ = os.WriteFile(ConfigFile, []byte(netlasToken), 0644)
139 defer func() {
140 _ = os.RemoveAll(ConfigFile)
141 }()
142 results, err := testutils.RunUncoverAndGetResults(debug, "-netlas", "'Grafana'")
143 if err != nil {
144 return err
145 }
146 return expectResultsGreaterThanCount(results, 0)
147}
148
149type criminalipTestcases struct{}
150

Callers

nothing calls this directly

Calls 2

RunUncoverAndGetResultsFunction · 0.92

Tested by

no test coverage detected