Skip to content

Commit 18d0c35

Browse files
ungpsdscho
authored andcommitted
stash: rename test cases to be more descriptive
Rename some test cases' labels to be more descriptive and under 80 characters per line. Signed-off-by: Paul-Sebastian Ungureanu <[email protected]> Signed-off-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ef273d commit 18d0c35

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/t3903-stash.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ test_expect_success 'stash show -p - no stashes on stack, stash-like argument' '
612612
test_cmp expected actual
613613
'
614614

615-
test_expect_success 'stash drop - fail early if specified stash is not a stash reference' '
615+
test_expect_success 'drop: fail early if specified stash is not a stash ref' '
616616
git stash clear &&
617617
test_when_finished "git reset --hard HEAD && git stash clear" &&
618618
git reset --hard &&
@@ -626,7 +626,7 @@ test_expect_success 'stash drop - fail early if specified stash is not a stash r
626626
git reset --hard HEAD
627627
'
628628

629-
test_expect_success 'stash pop - fail early if specified stash is not a stash reference' '
629+
test_expect_success 'pop: fail early if specified stash is not a stash ref' '
630630
git stash clear &&
631631
test_when_finished "git reset --hard HEAD && git stash clear" &&
632632
git reset --hard &&
@@ -690,7 +690,7 @@ test_expect_success 'invalid ref of the form "n", n >= N' '
690690
git stash drop
691691
'
692692

693-
test_expect_success 'stash branch should not drop the stash if the branch exists' '
693+
test_expect_success 'branch: do not drop the stash if the branch exists' '
694694
git stash clear &&
695695
echo foo >file &&
696696
git add file &&
@@ -701,7 +701,7 @@ test_expect_success 'stash branch should not drop the stash if the branch exists
701701
git rev-parse stash@{0} --
702702
'
703703

704-
test_expect_success 'stash branch should not drop the stash if the apply fails' '
704+
test_expect_success 'branch: should not drop the stash if the apply fails' '
705705
git stash clear &&
706706
git reset HEAD~1 --hard &&
707707
echo foo >file &&
@@ -715,7 +715,7 @@ test_expect_success 'stash branch should not drop the stash if the apply fails'
715715
git rev-parse stash@{0} --
716716
'
717717

718-
test_expect_success 'stash apply shows status same as git status (relative to current directory)' '
718+
test_expect_success 'apply: show same status as git status (relative to ./)' '
719719
git stash clear &&
720720
echo 1 >subdir/subfile1 &&
721721
echo 2 >subdir/subfile2 &&
@@ -1056,7 +1056,7 @@ test_expect_success 'stash push -p with pathspec shows no changes only once' '
10561056
test_i18ncmp expect actual
10571057
'
10581058

1059-
test_expect_success 'stash push with pathspec shows no changes when there are none' '
1059+
test_expect_success 'push <pathspec>: show no changes when there are none' '
10601060
>foo &&
10611061
git add foo &&
10621062
git commit -m "tmp" &&
@@ -1066,7 +1066,7 @@ test_expect_success 'stash push with pathspec shows no changes when there are no
10661066
test_i18ncmp expect actual
10671067
'
10681068

1069-
test_expect_success 'stash push with pathspec not in the repository errors out' '
1069+
test_expect_success 'push: <pathspec> not in the repository errors out' '
10701070
>untracked &&
10711071
test_must_fail git stash push untracked &&
10721072
test_path_is_file untracked

0 commit comments

Comments
 (0)