FICHA · MANJARO

cmocka

Elegant unit testing framework for C with support for mock objects

  • Library
  • LIBRARY
  • TESTING
  • C
  • Dependency only
official+codex · reviewed · May 27, 2026 description in en

Description

Provides cmocka, a unit testing framework for C with support for mock objects. Developers use it to test C functions, simulate dependencies, and verify behavior in small automated tests.

Install it when building or writing C projects that use cmocka. Mock-based tests should still be complemented by integration tests for real system behavior.

Permissions

Permissions not analysed for this source yet.