Documentation ¶ Overview ¶ Package compile provides an utility function to compile files in preparation tests. Index ¶ func Compile(t *testing.T, name string, o Options) type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Compile ¶ func Compile(t *testing.T, name string, o Options) Compile compiles the file at the given path using the corgi compiler available under os.Args[1]. Types ¶ type Options ¶ type Options struct { // Package sets the name of the package in which the generated function // will be placed. // // If not set, the name of the directory in which the calling file is // located, will be used. Package string AllowedFilters []string } Source Files ¶ View all Source files compile.go Click to show internal directories. Click to hide internal directories.