Closed pajlada closed 1 year ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
extension_pubsub.go | 3 | 85.71% | ||
helix.go | 22 | 89.77% | ||
<!-- | Total: | 25 | --> |
Totals | |
---|---|
Change from base Build 4093193027: | -0.2% |
Covered Lines: | 1457 |
Relevant Lines: | 1567 |
To test, print the request being made in something like the "BanUser" request, it will show this:
https://api.twitch.tv/helix/moderation/bans?=%7B60++22484632%7D&=117166826&=117166826
This is because the
buildQueryString
builder doesn't care if thequery
tag exists, it'll add values with an empty key.The test run before the fix commit:
The lack of coverage has to do with previously-parsed-as-query-params-code that is now correctly only serialized into the json body during tests.