| 301 | } |
| 302 | |
| 303 | static cbm_git_facts_options_t gf_options(gf_fixture_t *fx) { |
| 304 | return (cbm_git_facts_options_t){.root = fx->repo, |
| 305 | .base_ref = "refs/heads/base", |
| 306 | .git_executable = fx->git, |
| 307 | .expected_head = fx->head, |
| 308 | .deadline_ms = cbm_now_ms() + 60000U, |
| 309 | .command_limit = 256, |
| 310 | .stdout_limit = 1024 * 1024, |
| 311 | .stderr_limit = 65536, |
| 312 | .total_output_limit = 4 * 1024 * 1024}; |
| 313 | } |
| 314 | |
| 315 | static bool gf_bytes_equal(cbm_git_bytes_t bytes, const void *expected, size_t length) { |
| 316 | return bytes.length == length && |
no test coverage detected