Documentation ¶
Index ¶
- Constants
- func AssertEqualFiles(t testing.TB, want, actual string) bool
- func ChDir(t *testing.T, dir string)
- func DownloadablesPath(path string) string
- func MustReadFile(t *testing.T, filename string) []byte
- func MustWriteFile(t *testing.T, filename string, content []byte)
- func ProjectPath(path ...string) string
- func ProjectRoot() string
- func ServeFile(t *testing.T, file, path, query string) *httptest.Server
- func TmpDir(t *testing.T) string
Constants ¶
View Source
const FooChecksum = "f7fa712caea646575c920af17de3462fe9d08d7fe062b9a17010117d5fa4ed88"
FooChecksum is the checksum of downloadablesPath("foo.tar.gz")
Variables ¶
This section is empty.
Functions ¶
func AssertEqualFiles ¶
AssertEqualFiles asserts two files are equal
func DownloadablesPath ¶
DownloadablesPath path to testdata/downloadables
func MustReadFile ¶
MustReadFile reads a file or fails
func MustWriteFile ¶
MustWriteFile write a file or fails
func ProjectPath ¶
ProjectPath exchanges a path relative to the project root for an absolute path
func ProjectRoot ¶
func ProjectRoot() string
ProjectRoot returns the absolute path of the project root
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.