nicklaw5 / helix

A Twitch Helix API client written in Go.
MIT License
243 stars 88 forks source link

Added code entitlement status. #67

Closed intel352 closed 3 years ago

intel352 commented 3 years ago

Unable to expand on negative tests, as I don't have the necessary Twitch scenario to test this IRL to see what the possible returns are. Access is controlled via an app access token on the calling service. The client ID associated with the app access token must be approved by Twitch as part of a contracted arrangement.

@nicklaw5 let me know how you want to handle the additional test cases.

Docs: https://dev.twitch.tv/docs/api/reference#get-code-status

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 388086240


Changes Missing Coverage Covered Lines Changed/Added Lines %
entitlement_codes.go 8 10 80.0%
<!-- Total: 8 10 80.0% -->
Totals Coverage Status
Change from base Build 387945074: -0.1%
Covered Lines: 681
Relevant Lines: 760

💛 - Coveralls
intel352 commented 3 years ago

That's all from me in the next 24 hours. I hope to knock out some more endpoints soon, but haven't started on others yet.