@@ -98,28 +98,28 @@ func TestCollaboratorsCommand(t *testing.T) {
9898 },
9999 }
100100
101- for name , tt := range tests {
101+ for name , tc := range tests {
102102 t .Run (name , func (t * testing.T ) {
103103 ctx := slackcontext .MockContext (t .Context ())
104104 appSelectMock := prompts .NewAppSelectMock ()
105105 appSelectPromptFunc = appSelectMock .AppSelectPrompt
106- appSelectMock .On ("AppSelectPrompt" , mock .Anything , mock .Anything , prompts .ShowHostedOnly , prompts .ShowInstalledAndUninstalledApps ).Return (prompts.SelectedApp {App : tt .app , Auth : types.SlackAuth {}}, nil )
106+ appSelectMock .On ("AppSelectPrompt" , mock .Anything , mock .Anything , prompts .ShowHostedOnly , prompts .ShowInstalledAndUninstalledApps ).Return (prompts.SelectedApp {App : tc .app , Auth : types.SlackAuth {}}, nil )
107107 clientsMock := shared .NewClientsMock ()
108108 clientsMock .AddDefaultMocks ()
109109 clientsMock .API .On ("ListCollaborators" , mock .Anything , mock .Anything , mock .Anything ).
110- Return (tt .collaborators , nil )
110+ Return (tc .collaborators , nil )
111111 clients := shared .NewClientFactory (clientsMock .MockClientFactory (), func (clients * shared.ClientFactory ) {
112112 clients .SDKConfig = hooks .NewSDKConfigMock ()
113113 })
114114
115115 err := NewCommand (clients ).ExecuteContext (ctx )
116116 require .NoError (t , err )
117- clientsMock .API .AssertCalled (t , "ListCollaborators" , mock .Anything , mock .Anything , tt .app .AppID )
117+ clientsMock .API .AssertCalled (t , "ListCollaborators" , mock .Anything , mock .Anything , tc .app .AppID )
118118 clientsMock .IO .AssertCalled (t , "PrintTrace" , mock .Anything , slacktrace .CollaboratorListSuccess , mock .Anything )
119119 clientsMock .IO .AssertCalled (t , "PrintTrace" , mock .Anything , slacktrace .CollaboratorListCount , []string {
120- fmt .Sprintf ("%d" , len (tt .collaborators )),
120+ fmt .Sprintf ("%d" , len (tc .collaborators )),
121121 })
122- for _ , collaborator := range tt .collaborators {
122+ for _ , collaborator := range tc .collaborators {
123123 clientsMock .IO .AssertCalled (t , "PrintTrace" , mock .Anything , slacktrace .CollaboratorListCollaborator , []string {
124124 collaborator .ID ,
125125 collaborator .UserName ,
@@ -128,7 +128,7 @@ func TestCollaboratorsCommand(t *testing.T) {
128128 })
129129 }
130130 output := clientsMock .GetCombinedOutput ()
131- for _ , expectedOutput := range tt .expectedOutputs {
131+ for _ , expectedOutput := range tc .expectedOutputs {
132132 require .Contains (t , output , expectedOutput )
133133 }
134134 })
0 commit comments