MCPcopy Create free account
hub / github.com/monitoror/monitoror / TestVersionCommand

Function TestVersionCommand

cli/commands/init/init_test.go:16–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestVersionCommand(t *testing.T) {
17 delete(embedded.EmbeddedBoxes, "default-files")
18
19 output := &bytes.Buffer{}
20 monitororCli := &cli.MonitororCli{Output: output}
21
22 cmd := NewInitCommand(monitororCli)
23 assert.Panics(t, func() { _ = cmd.RunE(cmd, []string{}) })
24}
25
26func TestRunInit(t *testing.T) {
27 delete(embedded.EmbeddedBoxes, "default-files")

Callers

nothing calls this directly

Calls 1

NewInitCommandFunction · 0.85

Tested by

no test coverage detected