MCPcopy
hub / github.com/vulcand/vulcand / run

Method run

vctl/command/command_test.go:67–75  ·  view source on GitHub ↗
(params ...string)

Source from the content-addressed store, hash-verified

65}
66
67func (s *CmdSuite) run(params ...string) string {
68 args := []string{"vctl"}
69 args = append(args, params...)
70 args = append(args, fmt.Sprintf("--vulcan=%s", s.testServer.URL))
71 s.out = &bytes.Buffer{}
72 s.cmd = &Command{registry: registry.GetRegistry(), out: s.out, vulcanUrl: s.testServer.URL}
73 s.cmd.Run(args)
74 return strings.Replace(s.out.String(), "\n", " ", -1)
75}
76
77func (s *CmdSuite) TestStatus(c *C) {
78 c.Assert(s.run("top", "--refresh", "0"), Matches, ".*Frontend.*")

Callers 13

runStringMethod · 0.95
TestStatusMethod · 0.95
TestHostCRUDMethod · 0.95
TestLogSeverityMethod · 0.95
TestListenerCRUDMethod · 0.95
TestHTTPSListenerCRUDMethod · 0.95
TestBackendCRUDMethod · 0.95
TestServerCRUDMethod · 0.95
TestFrontendCRUDMethod · 0.95
TestLimitsCRUDMethod · 0.95
TestReadKeyPairMethod · 0.95

Calls 3

GetRegistryFunction · 0.92
RunMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected