func stringFlagFor(s string) cliflag.StringFlag { … } func TestSetCredentialsOptions(t *testing.T) { … } func TestModifyExistingAuthInfo(t *testing.T) { … } type setCredentialsTest … func TestSetCredentials(t *testing.T) { … } func (test setCredentialsTest) run(t *testing.T) { … }