(t *testing.T)
| 739 | } |
| 740 | |
| 741 | func TestStartCreateOnPushedFeatureBranchWhichIsAhead(t *testing.T) { |
| 742 | _, configuration := setup(t) |
| 743 | checkoutAndPushBranch("feature1") |
| 744 | createFile(t, "file.txt", "contentIrrelevant") |
| 745 | git("add", ".") |
| 746 | git("commit", "-m", "commit ahead") |
| 747 | git("push") |
| 748 | git("reset", "--hard", "HEAD~1") |
| 749 | |
| 750 | configuration.StartCreate = true |
| 751 | start(configuration) |
| 752 | |
| 753 | assertOnBranch(t, "mob/feature1") |
| 754 | assertCommitLogContainsMessage(t, "mob/feature1", "commit ahead") |
| 755 | } |
| 756 | |
| 757 | func TestStartCreateOnPushedFeatureBranchWhichIsBehind(t *testing.T) { |
| 758 | output, configuration := setup(t) |
nothing calls this directly
no test coverage detected