{"modulePath":"github.com/RedAFD/code-core","version":"v1.1.4","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Types\n\n```go\ntype Config struct {\n\t// The executable path of the tested program.\n\tProgram string\n\t// Working directory prepared for the tested program.\n\t// If empty, a directory named with random suffixes is picked, and created under the platform-dependent default temporary directory.\n\t// The directory will be removed when the test finishes.\n\tWorkDir string\n\t// Command-line arguments passed to the tested program.\n\tArgs []string\n\n\t// Where to redirect the stdout/stderr to. For debugging purposes.\n\tLogFile *os.File\n}\n```\nConfig Settings of the testing program\n\n```go\ntype T struct {\n\t*testing.T\n\tConfig *Config\n}\n```\nT wraps testing.T and the configurations of the testing instance.\n\n```go\nfunc New(t *testing.T, c *Config) *T\n```\nNew create an instance of T\n\n```go\nfunc (t *T) RunTest(tests ...func(*T) error) (err error)\n```\nRunTest Helper function for setting up a running Gitea server for functional testing and then gracefully terminating it.\n\n","path":"github.com/RedAFD/code-core/integrations/internal/utils","name":"utils","synopsis":"","isRedistributable":true}
