File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ void TestsPrinter::printFunctionParameters(const Tests::MethodDescription &metho
452
452
const Tests::MethodTestCase &testCase,
453
453
bool all) {
454
454
for (auto i = 0 ; i < testCase.paramValues .size (); i++) {
455
- parametrizedArrayParameters (methodDescription, testCase, i);
455
+ printPointerParameter (methodDescription, testCase, i);
456
456
const Tests::MethodParam ¶m = methodDescription.params [i];
457
457
bool containsLazy = !testCase.paramValues [i].lazyValues .empty () && !param.isChangeable ();
458
458
if (!param.type .isFilePointer () &&
@@ -623,9 +623,9 @@ void TestsPrinter::globalParamsAsserts(const Tests::MethodDescription &methodDes
623
623
}
624
624
}
625
625
626
- void TestsPrinter::parametrizedArrayParameters (const Tests::MethodDescription &methodDescription,
627
- const Tests::MethodTestCase &testCase,
628
- int param_num) {
626
+ void TestsPrinter::printPointerParameter (const Tests::MethodDescription &methodDescription,
627
+ const Tests::MethodTestCase &testCase,
628
+ int param_num) {
629
629
const auto ¶m = methodDescription.params [param_num];
630
630
const auto &value = testCase.paramValues [param_num];
631
631
if (types::TypesHandler::isArrayOfPointersToFunction (param.type )) {
Original file line number Diff line number Diff line change @@ -83,11 +83,7 @@ namespace printer {
83
83
84
84
void globalParamsAsserts (const Tests::MethodDescription &methodDescription,
85
85
const Tests::MethodTestCase &testCase);
86
-
87
- void parametrizedArrayParameters (const tests::Tests::MethodDescription &methodDescription,
88
- const Tests::MethodTestCase &testCase,
89
- int param_num);
90
-
86
+
91
87
void parametrizedAsserts (const tests::Tests::MethodDescription &methodDescription,
92
88
const Tests::MethodTestCase &testCase,
93
89
const std::optional<LineInfo::PredicateInfo>& predicateInfo);
@@ -149,6 +145,10 @@ namespace printer {
149
145
void printStubVariables (const Tests::MethodDescription &methodDescription,
150
146
const Tests::MethodTestCase &testCase);
151
147
148
+ void printPointerParameter (const tests::Tests::MethodDescription &methodDescription,
149
+ const Tests::MethodTestCase &testCase,
150
+ int param_num);
151
+
152
152
static Tests::MethodParam getValueParam (const Tests::MethodParam ¶m);
153
153
154
154
void genCodeBySuiteName (const std::string &targetSuiteName,
You can’t perform that action at this time.
0 commit comments