| 769 | } |
| 770 | |
| 771 | static void pt_hash(const void *bytes, size_t length, unsigned char out[32]) { |
| 772 | cbm_sha256_ctx hash; |
| 773 | cbm_sha256_init(&hash); |
| 774 | cbm_sha256_update(&hash, bytes, length); |
| 775 | cbm_sha256_final(&hash, out); |
| 776 | } |
| 777 | |
| 778 | static bool pt_view_matches(pt_fixture *fx, const cbm_pinned_tree_view_t *view, bool ancestor) { |
| 779 | if (!view || view->file_count != fx->count || view->directory_count != 2 || |
no test coverage detected