pointbreak 0.8.0

Durable terminal code review for changes humans and coding agents collaborate on together
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::Path;

pub(crate) fn naming_cutover_bytes(relative: &str) -> Vec<u8> {
    std::fs::read(
        Path::new(env!("CARGO_MANIFEST_DIR"))
            .join("tests/fixtures/naming-cutover")
            .join(relative),
    )
    .unwrap_or_else(|error| panic!("read naming-cutover fixture {relative}: {error}"))
}

pub(crate) fn naming_cutover_contract_bytes(relative: &str) -> Vec<u8> {
    let mut bytes = naming_cutover_bytes(relative);
    if bytes.last() == Some(&b'\n') {
        bytes.pop();
    }
    bytes
}