MCPcopy Create free account
hub / github.com/PasarGuard/node / mustHaveCommands

Function mustHaveCommands

backend/wireguard/integration_e2e_test.go:80–87  ·  view source on GitHub ↗
(t *testing.T, names ...string)

Source from the content-addressed store, hash-verified

78}
79
80func mustHaveCommands(t *testing.T, names ...string) {
81 t.Helper()
82 for _, name := range names {
83 if _, err := exec.LookPath(name); err != nil {
84 t.Fatalf("required command %q not found: %v", name, err)
85 }
86 }
87}
88
89func runCommand(t *testing.T, name string, args ...string) string {
90 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected