Skip to content

Reduce number of types used to initialize FILE* test input #503

Open
@tyuldashev

Description

@tyuldashev

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::FILE implicitly introduced as return type of fopen

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");

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions