48 crt_ut::test_coveralls()
56 crt_ut::test_local_init_invalid_arg()
68 crt_ut::test_local_init_invalid_addr()
73 memset(&info, 0,
sizeof(info));
76 mocks.NeverCallFunc(
func1);
77 mocks.NeverCallFunc(
func2);
91 crt_ut::test_local_init_invalid_size()
96 memset(&info, 0,
sizeof(info));
99 mocks.ExpectCallFunc(
func1);
100 mocks.NeverCallFunc(
func2);
117 crt_ut::test_local_init_register_eh_frame_failure()
122 memset(&info, 0,
sizeof(info));
124 MockRepository mocks;
125 mocks.NeverCallFunc(
func1);
126 mocks.NeverCallFunc(
func2);
139 crt_ut::test_local_init_valid_stop_at_size()
144 memset(&info, 0,
sizeof(info));
146 MockRepository mocks;
147 mocks.ExpectCallFunc(
func1);
148 mocks.ExpectCallFunc(
func1);
149 mocks.ExpectCallFunc(
func2);
167 crt_ut::test_local_init_valid_stop_at_null()
172 memset(&info, 0,
sizeof(info));
174 MockRepository mocks;
175 mocks.ExpectCallFunc(
func1);
176 mocks.ExpectCallFunc(
func1);
177 mocks.ExpectCallFunc(
func2);
195 crt_ut::test_local_init_catch_exception()
200 memset(&info, 0,
sizeof(info));
202 MockRepository mocks;
203 mocks.ExpectCallFunc(
func1).Throw(std::runtime_error(
"error"));
217 crt_ut::test_local_fini_invalid_arg()
223 crt_ut::test_local_fini_invalid_addr()
227 memset(&info, 0,
sizeof(info));
229 MockRepository mocks;
230 mocks.NeverCallFunc(
func1);
231 mocks.NeverCallFunc(
func2);
242 crt_ut::test_local_fini_invalid_size()
246 memset(&info, 0,
sizeof(info));
248 MockRepository mocks;
249 mocks.ExpectCallFunc(
func1);
250 mocks.NeverCallFunc(
func2);
264 crt_ut::test_local_fini_valid_stop_at_size()
268 memset(&info, 0,
sizeof(info));
270 MockRepository mocks;
271 mocks.ExpectCallFunc(
func1);
272 mocks.ExpectCallFunc(
func2);
273 mocks.ExpectCallFunc(
func1);
288 crt_ut::test_local_fini_valid_stop_at_null()
292 memset(&info, 0,
sizeof(info));
294 MockRepository mocks;
295 mocks.ExpectCallFunc(
func1);
296 mocks.ExpectCallFunc(
func2);
297 mocks.ExpectCallFunc(
func1);
312 crt_ut::test_local_fini_catch_exception()
317 memset(&info, 0,
sizeof(info));
319 MockRepository mocks;
320 mocks.ExpectCallFunc(
func1).Throw(std::runtime_error(
"error"));
#define RUN_UNITTEST_WITH_MOCKS(a, b)
void * memset(void *block, int c, size_t size)
#define REGISTER_EH_FRAME_FAILURE
int64_t local_init(struct section_info_t *info)
constexpr const auto size
void uint64_t uint64_t uint64_t *rdx noexcept
constexpr const auto addr
int64_t register_eh_frame(void *addr, uint64_t size) noexcept
#define REGISTER_EH_FRAME_SUCCESS
int64_t local_fini(struct section_info_t *info)