| 316 | } |
| 317 | |
| 318 | static std::vector<gpt_vocab::id> parse_tokens_from_string(const std::string& input, char delimiter) { |
| 319 | std::vector<gpt_vocab::id> output; |
| 320 | std::stringstream ss(input); |
| 321 | std::string token; |
| 322 | |
| 323 | while (std::getline(ss, token, delimiter)) { |
| 324 | output.push_back(std::stoi(token)); |
| 325 | } |
| 326 | |
| 327 | return output; |
| 328 | } |
| 329 | |
| 330 | static std::map<std::string, std::vector<gpt_vocab::id>> extract_tests_from_file(const std::string & fpath_test){ |
| 331 | if (fpath_test.empty()){ |
no outgoing calls
no test coverage detected