| 207 | } |
| 208 | |
| 209 | static std::vector<MountRule> parseMultipleRules(const std::vector<std::string>& ruleTexts) { |
| 210 | std::vector<MountRule> rules; |
| 211 | for (const auto& text : ruleTexts) { |
| 212 | MountRule rule = parseRuleString(text); |
| 213 | if (rule) { |
| 214 | rules.push_back(rule); |
| 215 | } else { |
| 216 | LOGE("[MountRuleParser::parseMultipleRules]: Failed to parse rule: `%s`", text.c_str()); |
| 217 | } |
| 218 | } |
| 219 | return rules; |
| 220 | } |
| 221 | |
| 222 | private: |
| 223 | static bool validateSyntax(const std::string& text) { |
nothing calls this directly
no outgoing calls
no test coverage detected