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

Function TestRunCLI_MissingToken

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

Source from the content-addressed store, hash-verified

21}
22
23func TestRunCLI_MissingToken(t *testing.T) {
24 err := RunCLI([]string{
25 "--server", "https://x",
26 "--node-id", "n",
27 "--insecure",
28 })
29 if err == nil || !strings.Contains(err.Error(), "--token") {
30 t.Fatalf("err = %v", err)
31 }
32}
33
34func TestRunCLI_MissingServer(t *testing.T) {
35 err := RunCLI([]string{

Callers

nothing calls this directly

Calls 2

RunCLIFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected