MCPcopy Create free account
hub / github.com/brimdata/super / ShouldSkip

Method ShouldSkip

ztest/ztest.go:332–344  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

330}
331
332func (z *ZTest) ShouldSkip(path string) string {
333 switch {
334 case z.Script != "" && path == "":
335 return "script test on in-process run"
336 case z.SPQ != "" && path != "":
337 return "in-process test on script run"
338 case z.Skip != "":
339 return z.Skip
340 case z.Tag != "" && z.Tag != os.Getenv("ZTEST_TAG"):
341 return fmt.Sprintf("tag %q does not match ZTEST_TAG=%q", z.Tag, os.Getenv("ZTEST_TAG"))
342 }
343 return ""
344}
345
346func (z *ZTest) RunScript(ctx context.Context, shellPath, testDir string, tempDir func() string) error {
347 if err := z.check(); err != nil {

Callers 2

RunMethod · 0.95
TestShouldSkipFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestShouldSkipFunction · 0.64