MCPcopy Create free account
hub / github.com/distributedio/titan / TestInfo

Function TestInfo

command/server_test.go:15–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestInfo(t *testing.T) {
16 out := bytes.NewBuffer(nil)
17 ctx := &Context{
18 Name: "info",
19 Args: nil,
20 In: nil,
21 Out: out,
22 Context: context.New(&context.ClientContext{
23 Namespace: "$unittest",
24 }, &context.ServerContext{
25 StartAt: time.Now(),
26 }),
27 }
28 Info(ctx)
29 // t.Log(out.String())
30 if strings.Index(out.String(), "ERR") == 0 {
31 t.Fail()
32 }
33}
34
35func TestMonitor(t *testing.T) {
36 assert := assert.New(t)

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
InfoFunction · 0.85
IndexMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected