| 2374 | } |
| 2375 | |
| 2376 | String ImportExporterReport::get_session_notes_string() { |
| 2377 | String report = ""; |
| 2378 | Dictionary notes = get_session_notes(); |
| 2379 | auto keys = notes.keys(); |
| 2380 | if (keys.size() == 0) { |
| 2381 | return report; |
| 2382 | } |
| 2383 | report += String("\n"); |
| 2384 | for (int i = 0; i < keys.size(); i++) { |
| 2385 | Dictionary note = notes[keys[i]]; |
| 2386 | if (i > 0) { |
| 2387 | report += String("------\n"); |
| 2388 | } |
| 2389 | String title = note["title"]; |
| 2390 | String message = note["message"]; |
| 2391 | report += title + ":" + String("\n"); |
| 2392 | report += message + String("\n"); |
| 2393 | PackedStringArray details = note["details"]; |
| 2394 | for (int j = 0; j < details.size(); j++) { |
| 2395 | report += " - " + details[j] + String("\n"); |
| 2396 | } |
| 2397 | report += String("\n"); |
| 2398 | } |
| 2399 | return report; |
| 2400 | } |
| 2401 | |
| 2402 | String ImportExporterReport::get_log_file_location() { |
| 2403 | return log_file_location; |
no test coverage detected