MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestRunCLI_MissingServer

Function TestRunCLI_MissingServer

internal/nodeenroll/cmd_test.go:34–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestRunCLI_MissingServer(t *testing.T) {
35 err := RunCLI([]string{
36 "--node-id", "n",
37 "--token", "t",
38 "--insecure",
39 })
40 if err == nil || !strings.Contains(err.Error(), "--server") {
41 t.Fatalf("err = %v", err)
42 }
43}
44
45func TestRunCLI_RequiresInsecure(t *testing.T) {
46 err := RunCLI([]string{

Callers

nothing calls this directly

Calls 2

RunCLIFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected