git-status-vars 1.3.0

Summarize git repo info into shell variables (for use in a prompt)
Documentation
//! Test the test helpers.

// We don’t use everything in helpers.
#[allow(dead_code)]
mod helpers;

#[test]
fn test_strip_indent_change() {
    assert_eq!(
        helpers::strip_indent(
            "
            No newline before this.
            Second line.
                Indented line.
            "
        ),
        "No newline before this.\nSecond line.\n    Indented line.\n",
    );
}

#[test]
fn test_strip_indent_unchanged() {
    let unchanged = "Doesn’t start with a newline
        This indent will not be removed.
        In fact, nothing will change.";
    assert_eq!(helpers::strip_indent(unchanged), unchanged);
}