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

Function TestRevokeAlTokens

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

Source from the content-addressed store, hash-verified

33}
34
35func TestRevokeAlTokens(t *testing.T) {
36 cmd := test.GetRootCmdWithSubCommands(NewCmds()...)
37 cmd.SetArgs([]string{"revoke-all-tokens", "--before", "2000"})
38 _, err := cmd.ExecuteC()
39 require.NoError(t, err)
40 require.Contains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "Successfully revoked all tokens")
41}

Callers

nothing calls this directly

Calls 3

StringMethod · 0.80
NewCmdsFunction · 0.70

Tested by

no test coverage detected