UTBotCpp
UTBotCpp copied to clipboard
Reduce number of types used to initialize `FILE*` test input
Description
Input file preparation usually contains following line:
struct _IO_FILE * fA = (UTBot::FILE *) fopen("../../../tests/src/A", "r");
Which uses three types to reference a file:
-
struct _IO_FILE -
UTBot::FILE -
std::FILEimplicitly introduced as return type offopen
If it's possible we could reduce cognitive load by using more concise expression. Ideally from my point of view it would look something like this:
FILE * fA = fopen("../../../tests/src/A", "r");