gendata

package
v0.1.1-no-docker4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2015 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

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 GenDataOpt struct {
	Repo      string `short:"r" long:"repo" description:"repo to build" required:"yes"`
	CommitID  string `short:"c" long:"commit" description:"commit ID to build"`
	GenSource bool   `long:"gen-source" description:"whether to emit source files for the generated data"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL