This file provide an example for warnings and Clang-tidy (or CppCheck) linter
This file provide an example of a dangerous code that can be debugged with the address sanitizer
This example file provide commands to compile main.c, segfault.c and run basic commands.
Pre-commit is installed like so:
pip install pre-commit && pre-commit install
The .pre-commit-config.yaml
is already filled with examples such as remote
hooks clang-format, and custom hooks custom_precommit.sh
& custom_precommit_failing.sh
This directory gives an example of a possible GTest configuration to test C functions. A Makefile is provided to compile both the program and the tests and run them.
This directory gives an example of an integration test runner taking a yml as testsuite and an executable to test as argument. It provides a diff of the expected output and the actual result
Self-explanatory