# tests will be removed from the binary and would not count as uncovered code.
export RUSTFLAGS='-C link-dead-code'

# TODO Maybe in the future there will be a better way.  See https://github.com/rust-lang/cargo/issues/1924.
build=$(cargo test --no-run --message-format=json 2>/dev/null \
    | jq -r "select(.profile.test == true) | .filenames[]" \
    | rev | cut -d'/' -f 1 | rev)