MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / cloudqueryTest

Function cloudqueryTest

cli/cmd/ai.go:308–318  ·  view source on GitHub ↗
(filenameWithoutExtension string)

Source from the content-addressed store, hash-verified

306}
307
308func cloudqueryTest(filenameWithoutExtension string) string {
309 cmd := exec.Command("cloudquery", "test", filenameWithoutExtension+".yaml")
310 var out bytes.Buffer
311 cmd.Stdout = &out
312 cmd.Stderr = &out
313 err := cmd.Run()
314 if err != nil {
315 return fmt.Sprintf("cloudquery test failed: %v\nOutput:\n%s", err, out.String())
316 }
317 return fmt.Sprintf("Result of cloudquery test:\n%s", out.String())
318}

Callers 1

aiCmdInnerFunction · 0.85

Calls 2

RunMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected