Documentation
¶
Overview ¶
Package gittest makes git repositories of apps for the tests of aicoded publish. Its git commands have constant arguments: messages and bundles go on standard input or in files.
Index ¶
- func Amend(t testing.TB, dir, message string) string
- func Commit(t testing.TB, dir, message string) string
- func DatabaseApp(t testing.TB, name, draft string) string
- func Head(t testing.TB, dir string) string
- func Init(t testing.TB, dir string)
- func NewApp(t testing.TB, name string) string
- func Verify(t testing.TB, bundles ...[]byte) []string
- func Write(t testing.TB, dir string, files map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseApp ¶
DatabaseApp is NewApp for an app that declares sqldb, whose draft is draft, which its .gitignore keeps out of git, as it does the cache of the published migrations.
func Init ¶
Init makes dir a git repository with no commit. Its git starts no maintenance in the background, which could still be writing in dir when the test removes it.
func NewApp ¶
NewApp makes, in a new temp folder, the app name, which aicoded check passes without the framework, as a git repository with one commit, and returns the folder. It skips the test when git or go is not on PATH.
Types ¶
This section is empty.