C library implementing a dynamic array (vector) and a singly linked list, complete with unit testing and CI/CD.
Precompiled binaries are available in Releases, these contain both static and shared libraries for Linux.
Example usage can be seen in the examples directory.
Function definitions are available there respective .h files and the API acts similarly to std::vector's.
Unit tests are written using CUnit.
sudo apt install gcc libcunit1-dev valgrind xsltproc lcov- Run all tests
./test.sh- Run a specific test:
./test.sh tests/test_list.c-
Test reports:
./build/test-reports/ -
Valgrind memory check reports:
./build/valgrind-reports/ -
Code coverage report:
./build/coverage-report/