Title: Improve test coverage for the math module · Issue #102837 · python/cpython · GitHub
Open Graph Title: Improve test coverage for the math module · Issue #102837 · python/cpython
X Title: Improve test coverage for the math module · Issue #102837 · python/cpython
Description: Sometimes input checks are missing (e.g. L989 of math_1 or L1023 of math_1a), sometimes exceptional cases are not tested (e.g. in fsum), some code is just inaccessible (like L3519 in the perm_comb_small() helper). See attached coverage r...
Open Graph Description: Sometimes input checks are missing (e.g. L989 of math_1 or L1023 of math_1a), sometimes exceptional cases are not tested (e.g. in fsum), some code is just inaccessible (like L3519 in the perm_comb_...
X Description: Sometimes input checks are missing (e.g. L989 of math_1 or L1023 of math_1a), sometimes exceptional cases are not tested (e.g. in fsum), some code is just inaccessible (like L3519 in the perm_comb_...
Opengraph URL: https://github.com/python/cpython/issues/102837
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve test coverage for the math module","articleBody":"Sometimes input checks are missing (e.g. L989 of math_1 or L1023 of math_1a), sometimes exceptional cases are not tested (e.g. in fsum), some code is just inaccessible (like L3519 in the perm_comb_small() helper). See attached coverage report (for `./python -m test test_math`).\r\n\r\nI believe, everything should be tested (except for memory errors and similar special cases).\r\n\r\n[lcov-report.zip](https://github.com/python/cpython/files/11014453/lcov-report.zip)\r\n\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102523\n* gh-110000\n* gh-111930\n* gh-112029\n* gh-112030\n* gh-112041\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2023-03-20T05:45:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/102837/cpython/issues/102837"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:00abc744-545a-83e0-314b-034bd91f8e6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCF8:29FAD7:8D66FE:C51EC4:696A7FF0 |
| html-safe-nonce | 14a09e5fb345b1802092f1841b842cdccdfdb26bb2847dab6b42dac6ef8da502 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y4OjI5RkFENzo4RDY2RkU6QzUxRUM0OjY5NkE3RkYwIiwidmlzaXRvcl9pZCI6IjI0MTgyMTI2MzU0ODQ1MjA0MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 849929e8bfe77a91cf9695d5f7d2e8ace91120e0a2d6230ba16e73d7baccc92b |
| hovercard-subject-tag | issue:1631428426 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/102837/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97b8ceca2732fc95f1a8ed458b0beef78d4f1f429a82b7452763f358074b3216/python/cpython/issues/102837 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97b8ceca2732fc95f1a8ed458b0beef78d4f1f429a82b7452763f358074b3216/python/cpython/issues/102837 |
| og:image:alt | Sometimes input checks are missing (e.g. L989 of math_1 or L1023 of math_1a), sometimes exceptional cases are not tested (e.g. in fsum), some code is just inaccessible (like L3519 in the perm_comb_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skirpichev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width