(t *testing.T)
| 508 | } |
| 509 | |
| 510 | func TestLoginCommandForTokenType(t *testing.T) { |
| 511 | tests := []struct { |
| 512 | tokType string |
| 513 | want string |
| 514 | }{ |
| 515 | {tokenPersonal, "dbxcli login"}, |
| 516 | {tokenTeamAccess, "dbxcli login team-access"}, |
| 517 | {tokenTeamManage, "dbxcli login team-manage"}, |
| 518 | } |
| 519 | |
| 520 | for _, tt := range tests { |
| 521 | if got := loginCommand(tt.tokType); got != tt.want { |
| 522 | t.Fatalf("loginCommand(%q) = %q, want %q", tt.tokType, got, tt.want) |
| 523 | } |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | func TestRequestAccessTokenRejectsEmptyToken(t *testing.T) { |
| 528 | mockOAuthAppCredentials(t) |
nothing calls this directly
no test coverage detected