@@ -85,21 +85,21 @@ void FeaturesFilter::filter(utbot::SettingsContext const &settingsContext,
85
85
return true ;
86
86
}
87
87
88
- if (method.isClassMethod () && !typesHandler.getStructInfo (method.classObj ->type ).canBeConstruct ) {
89
- std::stringstream message;
90
- message
91
- << " Method '" << method.name
92
- << " ' was skipped, as class '" << method.getClassName ().value ()
93
- << " ' can't be construct in current version" ;
94
- LOG_S (DEBUG) << message.str ();
95
- tests.commentBlocks .push_back (message.str ());
96
- return true ;
97
- }
88
+ // if (method.isClassMethod() && !typesHandler.getStructInfo(method.classObj->type).canBeConstruct) {
89
+ // std::stringstream message;
90
+ // message
91
+ // << "Method '" << method.name
92
+ // << "' was skipped, as class '" << method.getClassTypeName ().value()
93
+ // << "' can't be construct in current version";
94
+ // LOG_S(DEBUG) << message.str();
95
+ // tests.commentBlocks.push_back(message.str());
96
+ // return true;
97
+ // }
98
98
99
99
for (const auto ¶m: method.params ) {
100
100
if (typesHandler.isStruct (param.type )) {
101
101
for (const auto &field: typesHandler.getStructInfo (param.type ).fields ) {
102
- if (field.type .isArray () && field.accessSpecifier != types::Field ::AS_pubic) {
102
+ if (field.type .isArray () && field.accessSpecifier != types::AccessSpecifier ::AS_pubic) {
103
103
std::stringstream message;
104
104
message
105
105
<< " Method '" << method.name
@@ -115,7 +115,7 @@ void FeaturesFilter::filter(utbot::SettingsContext const &settingsContext,
115
115
116
116
if (typesHandler.isStruct (method.returnType )) {
117
117
for (const auto &field: typesHandler.getStructInfo (method.returnType ).fields ) {
118
- if (field.type .isArray () && field.accessSpecifier != types::Field ::AS_pubic) {
118
+ if (field.type .isArray () && field.accessSpecifier != types::AccessSpecifier ::AS_pubic) {
119
119
std::stringstream message;
120
120
message
121
121
<< " Method '" << method.name
@@ -130,11 +130,11 @@ void FeaturesFilter::filter(utbot::SettingsContext const &settingsContext,
130
130
131
131
if (method.isClassMethod ()) {
132
132
for (const auto &field : typesHandler.getStructInfo (method.classObj ->type ).fields ) {
133
- if (field.type .isArray () && field.accessSpecifier != types::Field ::AS_pubic) {
133
+ if (field.type .isArray () && field.accessSpecifier != types::AccessSpecifier ::AS_pubic) {
134
134
std::stringstream message;
135
135
message
136
136
<< " Method '" << method.name
137
- << " ' was skipped, as class '" << method.getClassName ().value ()
137
+ << " ' was skipped, as class '" << method.getClassTypeName ().value ()
138
138
<< " ' has private array member '" << field.name << " '" ;
139
139
LOG_S (DEBUG) << message.str ();
140
140
tests.commentBlocks .push_back (message.str ());
@@ -143,6 +143,17 @@ void FeaturesFilter::filter(utbot::SettingsContext const &settingsContext,
143
143
}
144
144
}
145
145
146
+ if (method.accessSpecifier != types::AS_pubic) {
147
+ std::stringstream message;
148
+ message
149
+ << " Method '" << method.name
150
+ << " ' from class '" << method.getClassTypeName ().value_or (" " )
151
+ << " ' was skipped, as private" ;
152
+ LOG_S (DEBUG) << message.str ();
153
+ tests.commentBlocks .push_back (message.str ());
154
+ return true ;
155
+ }
156
+
146
157
unsupportedStatistics[" passed features filter" ]++;
147
158
148
159
return false ;
0 commit comments