Documentation ¶
Index ¶
- Constants
- func FindGoMod() (string, *modfile.File, error)
- func FindGoModDir() (string, error)
- func GetNewPackageName(pkg string) string
- func GetPathForPrecompiledTestBinary(t *testing.T, pkg string) string
- func MakeGoModForTest(goSimModDir, testModDir string, requires []string) error
- func PreparedTestBinName(pkg string) string
- func PreparedTestInfoName(pkg string) string
- func ReplaceSpecialPackages(s string) string
- type BuildConfig
- type TranslateOutput
Constants ¶
View Source
const ( Module = "github.com/jellevandenhooff/gosim" OutputDirectory = ".gosim" )
Variables ¶
This section is empty.
Functions ¶
func FindGoModDir ¶
func GetNewPackageName ¶
func MakeGoModForTest ¶
MakeGoModForTest makes a go.mod and go.sum for tests that use the `gosim` CLI outside of the gosim module. It takes the go.mod from the gosim module strips it, and adds a `replace` directive pointing to the gosim module.
Only dependencies that are listed in the original go.mod work.
func PreparedTestBinName ¶
func PreparedTestInfoName ¶
func ReplaceSpecialPackages ¶
Types ¶
type BuildConfig ¶
func (BuildConfig) AsDirname ¶
func (b BuildConfig) AsDirname() string
Click to show internal directories.
Click to hide internal directories.