<commit_before>set -l repo_path $HOME/github.com/gh_user/gh_repo

function teardown -S
  rm -rf (dirname $repo_path)
end

test "navigates to cloned project when given user repo"
  "$HOME/github.com/gh_user/gh_repo" = (
    # Quoting required due to fish test bug: https://github.com/fish-shell/fish-shell/issues/2342
    mock git 0 "test \"\$args\" = 'clone -q git@github.com:gh_user/gh_repo.git $repo_path'
                and mkdir -p $repo_path"
    gh gh_user gh_repo
    pwd
  )
end<commit_msg>:white_check_mark: Test clone navigation for user/repo<commit_after>set -l repo_path $HOME/github.com/gh_user/gh_repo

function teardown -S
  rm -rf (dirname $repo_path)
end

test "navigates to cloned project when given user repo"
  "$HOME/github.com/gh_user/gh_repo" = (
    # Quoting required due to fish test bug: https://github.com/fish-shell/fish-shell/issues/2342
    mock git 0 "test \"\$args\" = 'clone -q git@github.com:gh_user/gh_repo.git $repo_path'
                and mkdir -p $repo_path"
    gh gh_user gh_repo
    pwd
  )
end

test "navigates to cloned project when given user/repo"
  "$HOME/github.com/gh_user/gh_repo" = (
    mock git 0 "test \"\$args\" = 'clone -q git@github.com:gh_user/gh_repo.git $repo_path'
                and mkdir -p $repo_path"
    gh gh_user/gh_repo
    pwd
  )
end
{'fraction_non_alphanumeric': 0.11697247706422019, 'fraction_numerical': 0.008409785932721712, 'mean_word_length': 3.0401234567901234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5033086', 'n_tokens_mistral': 499, 'n_tokens_neox': 477, 'n_words': 126}