Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
seachicken committed Nov 22, 2024
1 parent d4f0b27 commit 67aa4cc
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var ErrCommand = errors.New("failed to run external command")

func Test_ShouldBeDeletableWhenRemoteBranchesAssociatedWithMergedPR(t *testing.T) {
func Test_DeletableWhenRemoteBranchesAssociatedWithMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -49,7 +49,7 @@ func Test_ShouldBeDeletableWhenRemoteBranchesAssociatedWithMergedPR(t *testing.T
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenLsRemoteBranchesAssociatedWithMergedPR(t *testing.T) {
func Test_DeletableWhenLsRemoteBranchesAssociatedWithMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -87,7 +87,7 @@ func Test_ShouldBeDeletableWhenLsRemoteBranchesAssociatedWithMergedPR(t *testing
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchesAssociatedWithMergedPR(t *testing.T) {
func Test_DeletableWhenBranchesAssociatedWithMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -128,7 +128,7 @@ func Test_ShouldBeDeletableWhenBranchesAssociatedWithMergedPR(t *testing.T) {
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchesAssociatedWithSquashAndMergedPR(t *testing.T) {
func Test_DeletableWhenBranchesAssociatedWithSquashAndMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -168,7 +168,7 @@ func Test_ShouldBeDeletableWhenBranchesAssociatedWithSquashAndMergedPR(t *testin
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchesAssociatedWithUpstreamSquashAndMergedPR(t *testing.T) {
func Test_DeletableWhenBranchesAssociatedWithUpstreamSquashAndMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -208,7 +208,7 @@ func Test_ShouldBeDeletableWhenBranchesAssociatedWithUpstreamSquashAndMergedPR(t
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenPRCheckoutBranchesAssociatedWithUpstreamSquashAndMergedPR(t *testing.T) {
func Test_DeletableWhenPRCheckoutBranchesAssociatedWithUpstreamSquashAndMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -248,7 +248,7 @@ func Test_ShouldBeDeletableWhenPRCheckoutBranchesAssociatedWithUpstreamSquashAnd
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithCheckIsFalse(t *testing.T) {
func Test_DeletableWhenBranchIsCheckedOutWithCheckIsFalse(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -289,7 +289,7 @@ func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithCheckIsFalse(t *testing.T)
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithCheckIsTrue(t *testing.T) {
func Test_DeletableWhenBranchIsCheckedOutWithCheckIsTrue(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -330,7 +330,7 @@ func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithCheckIsTrue(t *testing.T) {
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithoutDefaultBranch(t *testing.T) {
func Test_DeletableWhenBranchIsCheckedOutWithoutDefaultBranch(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -369,7 +369,7 @@ func Test_ShouldBeDeletableWhenBranchIsCheckedOutWithoutDefaultBranch(t *testing
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldNotDeletableWhenBranchHasModifiedUncommittedChanges(t *testing.T) {
func Test_NotDeletableWhenBranchHasModifiedUncommittedChanges(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -410,7 +410,7 @@ func Test_ShouldNotDeletableWhenBranchHasModifiedUncommittedChanges(t *testing.T
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenBranchHasUntrackedUncommittedChanges(t *testing.T) {
func Test_DeletableWhenBranchHasUntrackedUncommittedChanges(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -451,7 +451,7 @@ func Test_ShouldBeDeletableWhenBranchHasUntrackedUncommittedChanges(t *testing.T
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldNotDeletableWhenPRIsClosedAndStateOptionIsMerged(t *testing.T) {
func Test_NotDeletableWhenPRIsClosedAndStateOptionIsMerged(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -491,7 +491,7 @@ func Test_ShouldNotDeletableWhenPRIsClosedAndStateOptionIsMerged(t *testing.T) {
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldDeletableWhenPRIsClosedAndStateOptionIsClosed(t *testing.T) {
func Test_DeletableWhenPRIsClosedAndStateOptionIsClosed(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -531,7 +531,7 @@ func Test_ShouldDeletableWhenPRIsClosedAndStateOptionIsClosed(t *testing.T) {
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenPRHasMergedAndClosedAndStateOptionIsMerged(t *testing.T) {
func Test_DeletableWhenPRHasMergedAndClosedAndStateOptionIsMerged(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -571,7 +571,7 @@ func Test_ShouldBeDeletableWhenPRHasMergedAndClosedAndStateOptionIsMerged(t *tes
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeDeletableWhenPRHasMergedAndClosedAndStateOptionIsClosed(t *testing.T) {
func Test_DeletableWhenPRHasMergedAndClosedAndStateOptionIsClosed(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -611,7 +611,7 @@ func Test_ShouldBeDeletableWhenPRHasMergedAndClosedAndStateOptionIsClosed(t *tes
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldNotDeletableWhenBranchesAssociatedWithNotFullyMergedPR(t *testing.T) {
func Test_NotDeletableWhenBranchesAssociatedWithNotFullyMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -653,7 +653,7 @@ func Test_ShouldNotDeletableWhenBranchesAssociatedWithNotFullyMergedPR(t *testin
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldNotDeletableWhenDefaultBranchAssociatedWithMergedPR(t *testing.T) {
func Test_NotDeletableWhenDefaultBranchAssociatedWithMergedPR(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -693,7 +693,7 @@ func Test_ShouldNotDeletableWhenDefaultBranchAssociatedWithMergedPR(t *testing.T
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldNotDeletableWhenBranchIsProtected(t *testing.T) {
func Test_NotDeletableWhenBranchIsProtected(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -774,7 +774,7 @@ func Test_BranchesAndPRsAreNotAssociatedWhenManyLocalCommitsAreAhead(t *testing.
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeNoCommitHistoryWhenFirstCommitOfTopicBranchIsAssociatedWithDefaultBranch(t *testing.T) {
func Test_NoCommitHistoryWhenFirstCommitOfTopicBranchIsAssociatedWithDefaultBranch(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down Expand Up @@ -814,7 +814,7 @@ func Test_ShouldBeNoCommitHistoryWhenFirstCommitOfTopicBranchIsAssociatedWithDef
assert.Equal(t, shared.NotDeletable, actual[1].State)
}

func Test_ShouldBeNoCommitHistoryWhenDetachedBranch(t *testing.T) {
func Test_NoCommitHistoryWhenDetachedBranch(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()

Expand Down

0 comments on commit 67aa4cc

Please sign in to comment.