()
| 250 | type binaryedgeTestcases struct{} |
| 251 | |
| 252 | func (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 | |
| 271 | type onypheTestcases struct{} |
| 272 |
nothing calls this directly
no test coverage detected