MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / ShellCheck

Function ShellCheck

internal/testing/require/exec.go:26–26  ·  view source on GitHub ↗

ShellCheck returns the path to the "shellcheck" executable or calls t.Skip.

(t testing.TB)

Source from the content-addressed store, hash-verified

24
25// ShellCheck returns the path to the "shellcheck" executable or calls t.Skip.
26func ShellCheck(t testing.TB) string { t.Helper(); return shellcheck(t) }
27
28var shellcheck = executable("shellcheck", "--version")
29

Callers 12

TestMakeDirectoriesFunction · 0.92
TestShellPathFunction · 0.92
TestStartupCommandFunction · 0.92
TestReloadCommandFunction · 0.92
TestReloadCommandFunction · 0.92
TestRestoreCommandFunction · 0.92
TestReloadCommandFunction · 0.92
TestStartupCommandFunction · 0.92

Calls 1

HelperMethod · 0.80

Tested by 12

TestMakeDirectoriesFunction · 0.74
TestShellPathFunction · 0.74
TestStartupCommandFunction · 0.74
TestReloadCommandFunction · 0.74
TestReloadCommandFunction · 0.74
TestRestoreCommandFunction · 0.74
TestReloadCommandFunction · 0.74
TestStartupCommandFunction · 0.74