25 bfelf_loader_ut::test_bfelf_file_get_load_instr_invalid_ef()
29 auto ret = bfelf_file_get_load_instr(
nullptr, 0, &instr);
34 bfelf_loader_ut::test_bfelf_file_get_load_instr_invalid_index()
40 auto &&
data = get_test();
41 auto &&buff = std::get<0>(
data);
44 ret = bfelf_file_init(buff.get(),
size, &ef);
47 ret = bfelf_file_get_load_instr(&ef, 10, &instr);
52 bfelf_loader_ut::test_bfelf_file_get_load_instr_invalid_instr()
57 auto &&
data = get_test();
58 auto &&buff = std::get<0>(
data);
59 auto &&size = std::get<1>(
data);
61 ret = bfelf_file_init(buff.get(),
size, &ef);
64 ret = bfelf_file_get_load_instr(&ef, 0,
nullptr);
69 bfelf_loader_ut::test_bfelf_file_get_load_instr_success()
75 auto &&
data = get_test();
76 auto &&buff = std::get<0>(
data);
77 auto &&size = std::get<1>(
data);
79 ret = bfelf_file_init(buff.get(),
size, &ef);
82 ret = bfelf_file_get_load_instr(&ef, 0, &instr);
#define BFELF_ERROR_INVALID_ARG
int64_t unsigned long void * data
#define BFELF_ERROR_INVALID_INDEX
constexpr const auto size