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

Function TestShouldSkip

ztest/ztest_test.go:12–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestShouldSkip(t *testing.T) {
13 assert.Equal(t, "in-process test on script run", (&ZTest{SPQ: "x"}).ShouldSkip("y"))
14 assert.Equal(t, "script test on in-process run", (&ZTest{Script: "x"}).ShouldSkip(""))
15 assert.Equal(t, "reason", (&ZTest{Skip: "reason"}).ShouldSkip(""))
16 assert.Equal(t, `tag "x" does not match ZTEST_TAG=""`, (&ZTest{Tag: "x"}).ShouldSkip(""))
17}
18
19func TestRunScript(t *testing.T) {
20 t.Run("outputs", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

ShouldSkipMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected