Documentation ¶ Index ¶ func Diff(expected, actual string) string func GoImport(t testing.TB, abspath string) func(s string) string func GoRun(t testing.TB, path, main string) (string, string, func()) func Name(t Test) string func Truncate(str string, num int) string type Test Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Diff ¶ func Diff(expected, actual string) string Diff fn func GoImport ¶ func GoImport(t testing.TB, abspath string) func(s string) string GoImport fn func GoRun ¶ func GoRun(t testing.TB, path, main string) (string, string, func()) GoRun write a main.go file runs it, returning the result func Name ¶ func Name(t Test) string Name of the test func Truncate ¶ func Truncate(str string, num int) string Truncate a string by n Types ¶ type Test ¶ type Test struct { Schema string Name string Before string After string Func string Expect string Error string } Test struct Source Files ¶ View all Source files diff.go go.go name.go test.go truncate.go Click to show internal directories. Click to hide internal directories.