packagecommandsimport(cmds"github.com/ipfs/go-ipfs/commands""strings""testing")funccheckHelptextRecursive(t*testing.T,name[]string,c*cmds.Command){ifc.Helptext.Tagline==""{t.Errorf("%s has no tagline!",strings.Join(name," "))}ifc.Helptext.LongDescription==""{t.Errorf("%s has no long description!",strings.Join(name," "))}ifc.Helptext.ShortDescription==""{t.Errorf("%s has no short description!",strings.Join(name," "))}ifc.Helptext.Synopsis==""{t.Errorf("%s has no synopsis!",strings.Join(name," "))}forsubname,sub:=rangec.Subcommands{checkHelptextRecursive(t,append(name,subname),sub)}}funcTestHelptexts(t*testing.T){checkHelptextRecursive(t,[]string{"ipfs"},Root)}