Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

ALIEN_EXPORT is sometimes used ONLY to satisfy unit tests #103

Open
cedricchevalier19 opened this issue Dec 15, 2021 · 1 comment
Open
Labels

Comments

@cedricchevalier19
Copy link
Member

Unit tests must access and stress internal components of Alien. Currently, to access these objects, they have to be exported, so they can be called by the consumer test program.

This leads to exposing a lot of internal objects to end-user.

We should rethink the way we make these tests, to integrate them deeper in Alien and avoid leaking private API.

@cedricchevalier19
Copy link
Member Author

One possible technical solution is to describe Alien as a CMake object library and then consume it twice: for producing a real shared library and for making the unit tests executable. This way the test executable will be in the same "module" as the rest of Alien.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant