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

Function TestGetAppUnknownFormat

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

Source from the content-addressed store, hash-verified

18}
19
20func TestGetAppUnknownFormat(t *testing.T) {
21 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)
22 cmd.SetArgs([]string{"get-app", "--output-format", "unknown"})
23 _, err := cmd.ExecuteC()
24 require.Error(t, err)
25 require.NotContains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "organization")
26}
27
28func TestUpdateApp(t *testing.T) {
29 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)

Callers

nothing calls this directly

Calls 3

StringMethod · 0.80
NewCmdsFunction · 0.70

Tested by

no test coverage detected