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)
}
}