Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.2.1"
Version is the gria's version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddedCodes ¶
type AddedCodes struct { // file name -> appended test code Codes map[string]string TestFileNameSet set.StrSet }
AddedCodes represents added codes.
func CreateAddedCodes ¶
func CreateAddedCodes(testFileNameSet set.StrSet) AddedCodes
CreateAddedCodes returns an AddedCodes.
type FileWriter ¶
type FileWriter interface { Append(dest string, data []byte) error Create(dest string, data []byte) error }
FileWriter represents the interface to add tests to codes.
type Func ¶
Func represents a function code.
func (*Func) IsTestFile ¶
IsTestFile returns whether the function is written in a test file or not.
func (*Func) TestFileName ¶
TestFileName returns a test file name.
func (*Func) TestFuncName ¶
TestFuncName returns a test function name.
type GenArgs ¶
type GenArgs struct { Targets []string FileWriter FileWriter }
GenArgs is arguments of usecase.Gen function.
Click to show internal directories.
Click to hide internal directories.