Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 583 Bytes

unit.md

File metadata and controls

15 lines (10 loc) · 583 Bytes

Unit tests

Unit tests only work on debug builds.

Unit tests are tests that use functions that are libcurl internal and therefore not part of any public API, headers or external documentation.

If the internal function you want to test is made static, they should instead be set UNITTEST - which then makes debug builds not use static for them and they then become accessible to test from unit tests.

We provide a set of convenience functions and macros for unit tests to make it quick and easy to write them.

All unit test programs are kept in tests/unit