| 719 | #ifdef CBM_DIAGNOSTICS_ENABLE_TEST_API |
| 720 | |
| 721 | static bool diag_test_copy(char *destination, size_t destination_size, const char *source) { |
| 722 | if (!destination || destination_size == 0) { |
| 723 | return false; |
| 724 | } |
| 725 | int written = snprintf(destination, destination_size, "%s", source); |
| 726 | return written >= 0 && (size_t)written < destination_size; |
| 727 | } |
| 728 | |
| 729 | bool cbm_diag_test_copy_paths(char *directory, size_t directory_size, char *snapshot, |
| 730 | size_t snapshot_size, char *trajectory, size_t trajectory_size) { |
no outgoing calls
no test coverage detected