# Make testable the encapsulated code of a library

**URL:** <https://discourse.cmake.org/t/make-testable-the-encapsulated-code-of-a-library/10887>\
**Category:** Code\
**Created:** [May 22, 2024, 4:05pm UTC](https://discourse.cmake.org/t/make-testable-the-encapsulated-code-of-a-library/10887 "2024-05-22T16:05:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [May 23, 2024, 10:55am UTC](https://discourse.cmake.org/t/make-testable-the-encapsulated-code-of-a-library/10887/2 "2024-05-23T10:55:48Z")

</div>

Duplicate of [Make some library's code private some consumers, but public for tests](https://discourse.cmake.org/t/make-some-librarys-code-private-some-consumers-but-public-for-tests/10886)

Locking.

---

_[View the full topic](https://discourse.cmake.org/t/make-testable-the-encapsulated-code-of-a-library/10887)._
