MCPcopy Create free account
hub / github.com/GetStream/stream-cli / TestGetAppJsonFormat

Function TestGetAppJsonFormat

pkg/cmd/chat/app/app_test.go:12–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestGetAppJsonFormat(t *testing.T) {
13 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)
14 cmd.SetArgs([]string{"get-app", "--output-format", "json"})
15 _, err := cmd.ExecuteC()
16 require.NoError(t, err)
17 require.Contains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "organization")
18}
19
20func TestGetAppUnknownFormat(t *testing.T) {
21 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)

Callers

nothing calls this directly

Calls 3

StringMethod · 0.80
NewCmdsFunction · 0.70

Tested by

no test coverage detected