examc

proof of concept C unit test library using linker sections (by cozzyd)

Examc Alternatives

Similar projects and alternatives to examc

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better examc alternative or higher similarity.

examc reviews and mentions

Posts with mentions or reviews of examc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-10.
  • static_assert is all you need (no leaks, no UB)
    5 projects | news.ycombinator.com | 10 Apr 2023
    There are other ways to do this. I made a proof of concept of using linker sections to allow you to sprinkle tests within the implementation inline once... https://github.com/cozzyd/examc (this is obviously not production-ready, just serves as a proof of concept).

    Basically the idea is that the test code gets written to a different linker section that your test runner can iterate through, when tests are enabled.

  • Running C unit tests with pytest
    6 projects | news.ycombinator.com | 12 Feb 2022
    Indeed, I just made a POC with compiler sections: https://github.com/cozzyd/examc

    This implementation only works with gcc though probably (it uses the automatic __start_SECTION and __stop_SECTION that gcc generates but clang doesn't seem to... there are likely hacks to make this work anyway though).

Stats

Basic examc repo stats
2
0
0.0
about 2 years ago

cozzyd/examc is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of examc is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com