(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestContextRequestToken(t *testing.T) { |
| 11 | expectedToken := "request_token" |
| 12 | expectedSecret := "request_secret" |
| 13 | ctx := WithRequestToken(context.Background(), expectedToken, expectedSecret) |
| 14 | token, secret, err := RequestTokenFromContext(ctx) |
| 15 | assert.Equal(t, expectedToken, token) |
| 16 | assert.Equal(t, expectedSecret, secret) |
| 17 | assert.Nil(t, err) |
| 18 | } |
| 19 | |
| 20 | func TestRequestTokenFromContext_Error(t *testing.T) { |
| 21 | token, secret, err := RequestTokenFromContext(context.Background()) |
nothing calls this directly
no test coverage detected