| 3527 | } |
| 3528 | |
| 3529 | int should_validate_cache_entries(void) |
| 3530 | { |
| 3531 | static int validate_index_cache_entries = -1; |
| 3532 | |
| 3533 | if (validate_index_cache_entries < 0) { |
| 3534 | if (getenv("GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES")) |
| 3535 | validate_index_cache_entries = 1; |
| 3536 | else |
| 3537 | validate_index_cache_entries = 0; |
| 3538 | } |
| 3539 | |
| 3540 | return validate_index_cache_entries; |
| 3541 | } |
| 3542 | |
| 3543 | #define EOIE_SIZE (4 + GIT_SHA1_RAWSZ) /* <4-byte offset> + <20-byte hash> */ |
| 3544 | #define EOIE_SIZE_WITH_HEADER (4 + 4 + EOIE_SIZE) /* <4-byte signature> + <4-byte length> + EOIE_SIZE */ |
no outgoing calls
no test coverage detected