Add unit tests for allocation errors #740
Labels
easy hacks
The solution is expected to be straightforward even if you are new to the project
help wanted
An important and awaited task but we have no human resources for it yet
tests
Many pipeline elements take core::IArena as an argument and perform some allocations in constructor. If allocations fails, the convention is to report error (StatusNoMem) via init_status() method.
We need to cover this behavior with unit tests. For each element, we need to add one test that creates the element using mock, which always fails (e.g. core::NoopArena). Then we should check that the element returned StatusNoMem via init_status().
Elements to cover:
The text was updated successfully, but these errors were encountered: