Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenDataCmd ¶
type GenDataCmd struct{}
GenDataCmd is a dummy command that serves as the parent of the data-generating subcommands.
func (*GenDataCmd) Execute ¶
func (c *GenDataCmd) Execute(args []string) error
type GenDataOpt ¶
type SimpleRepoCmd ¶
type SimpleRepoCmd struct { GenDataOpt NFiles []int `short:"f" long:"files" description:"number of files at each level" required:"yes"` NUnits []int `short:"u" long:"units" description:"number of units to generate; uses same input structure as --files" required:"yes"` NDefs int `long:"ndefs" description:"number of defs to generate per file" required:"yes"` NRefs int `long:"nrefs" description:"number of refs to generate per file" required:"yes"` }
func (*SimpleRepoCmd) Execute ¶
func (c *SimpleRepoCmd) Execute(args []string) error
type URefsRepoCmd ¶
type URefsRepoCmd struct { GenDataOpt NUnits []int `short:"u" long:"units" description:"number of units to generate; uses same input structure as --files" required:"yes"` NFiles []int `short:"f" long:"files" description:"number of files at each level" required:"yes"` NDefs int `long:"ndefs" description:"number of defs to generate per file" required:"yes"` }
URefsRepoCmd generates a synthetic repository with the specified unit and file hierarchy. In each file, it emits NDefs defs. For each file of defs, for each source unit, it emits a file of references to the defs. This results in a repository with a high number of cross-unit references.
func (*URefsRepoCmd) Execute ¶
func (c *URefsRepoCmd) Execute(args []string) error
Click to show internal directories.
Click to hide internal directories.