[ https://issues.apache.org/jira/browse/DISPATCH-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484247#comment-17484247 ]
ASF GitHub Bot commented on DISPATCH-1783: ------------------------------------------ codecov-commenter edited a comment on pull request #1469: URL: https://github.com/apache/qpid-dispatch/pull/1469#issuecomment-999876639 # [Codecov](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report > Merging [#1469](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (dc78148) into [main](https://codecov.io/gh/apache/qpid-dispatch/commit/6e855af88bb8ac65a8291e0a462520810e55bf22?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (6e855af) will **decrease** coverage by `73.95%`. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/graphs/tree.svg?width=650&height=150&src=pr&token=rk2Cgd27pP&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) ```diff @@ Coverage Diff @@ ## main #1469 +/- ## =========================================== - Coverage 84.84% 10.89% -73.96% =========================================== Files 116 95 -21 Lines 28640 24499 -4141 =========================================== - Hits 24300 2669 -21631 - Misses 4340 21830 +17490 ``` | [Impacted Files](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | | |---|---|---| | [src/failoverlist.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL2ZhaWxvdmVybGlzdC5j) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [src/router\_core/delivery.h](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL3JvdXRlcl9jb3JlL2RlbGl2ZXJ5Lmg=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [include/qpid/dispatch/container.h](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5jbHVkZS9xcGlkL2Rpc3BhdGNoL2NvbnRhaW5lci5o) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [include/qpid/dispatch/alloc\_pool.h](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5jbHVkZS9xcGlkL2Rpc3BhdGNoL2FsbG9jX3Bvb2wuaA==) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [include/qpid/dispatch/delivery\_state.h](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-aW5jbHVkZS9xcGlkL2Rpc3BhdGNoL2RlbGl2ZXJ5X3N0YXRlLmg=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [src/adaptors/http1/http1\_request\_info.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL2FkYXB0b3JzL2h0dHAxL2h0dHAxX3JlcXVlc3RfaW5mby5j) | `0.00% <0.00%> (-100.00%)` | :arrow_down: | | [src/router\_core/management\_agent.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL3JvdXRlcl9jb3JlL21hbmFnZW1lbnRfYWdlbnQuYw==) | `0.00% <0.00%> (-97.61%)` | :arrow_down: | | [...uter\_core/modules/edge\_router/connection\_manager.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL3JvdXRlcl9jb3JlL21vZHVsZXMvZWRnZV9yb3V0ZXIvY29ubmVjdGlvbl9tYW5hZ2VyLmM=) | `0.00% <0.00%> (-96.88%)` | :arrow_down: | | [src/router\_config.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL3JvdXRlcl9jb25maWcuYw==) | `0.79% <0.00%> (-95.62%)` | :arrow_down: | | [src/compose.c](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c3JjL2NvbXBvc2UuYw==) | `0.00% <0.00%> (-94.90%)` | :arrow_down: | | ... and [97 more](https://codecov.io/gh/apache/qpid-dispatch/pull/1469/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [6e855af...dc78148](https://codecov.io/gh/apache/qpid-dispatch/pull/1469?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Add ability to use test doubles (mocks, fakes, ...) in C tests > -------------------------------------------------------------- > > Key: DISPATCH-1783 > URL: https://issues.apache.org/jira/browse/DISPATCH-1783 > Project: Qpid Dispatch > Issue Type: Improvement > Components: Tests > Affects Versions: 1.14.0 > Reporter: Jiri Daněk > Priority: Major > > During the work on https://github.com/apache/qpid-dispatch/pull/684, there > was at one point a version of the PR, which tested what happens if > {{vsnprintf}} called from {{safe_snprinf}} returns {{-1}}. > This was done by replacing the {{vsnprintf}} with a mock (technically it's > probably a stub, or maybe fake, but let's ignore the proper terminology). > There are various possibilities how to approach mocking in C. They are less > nice than in more dynamic languages such as Java, or even C++ (where it's > possible to subclass things). Nevertheless, it can be useful technique, and > it should be explored. > CC [~cans] -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org