Skip to content
quarry Artifact [077c93fce1]
Login

Artifact [077c93fce1]

Artifact 077c93fce1797b00bfd20cb8a085b7003947be7314eb962f44835f18385a6d81:


package index

import "testing"

// branchTip's two ways of finding a propagating-tag member answer the
// same: the tag-member cases run again with every lookup sent down the
// tag-row walk, as an old branch on a long history is.
func TestBranchTipAgreesDownTheTagRowWalk(t *testing.T) {
	saved := symDateWalkMax
	symDateWalkMax = 0
	defer func() { symDateWalkMax = saved }()
	for name, f := range map[string]func(*testing.T){
		"renamed":           TestARenamedBranchKeepsResolvingUnderItsOldName,
		"cancelled":         TestACancelledSymTagStopsResolving,
		"ordinary":          TestAnOrdinaryBranchStillResolvesToItsNewestLeaf,
		"inherited":         TestAnInheritedSymTagResolvesToTheCurrentTip,
		"stops at a cancel": TestInheritanceStopsAtACancelAndStaysStopped,
		"listed tip":        TestTheListedTipFollowsAnInheritedTag,
		"tag-only name":     TestATagOnlyNameIsListed,
	} {
		t.Run(name, f)
	}
}