{"modulePath":"github.com/context-dot-dev/context-dev-cli","version":"v1.28.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mocktest\n\n## Functions\n\n```go\nfunc TestFile(t *testing.T, contents string) string\n```\n\n```go\nfunc TestRunMockTestWithFlags(t *testing.T, args ...string)\n```\nTestRunMockTestWithFlags runs a test against a mock server with the provided CLI args and ensures it succeeds\n\n```go\nfunc TestRunMockTestWithPipeAndFlags(t *testing.T, pipeData []byte, args ...string)\n```\nTestRunMockTestWithPipeAndFlags runs a test against a mock server with the provided data piped over stdin and CLI args and ensures it succeeds\n\n## Types\n\n```go\ntype OnlyMockServerDialer struct{}\n```\nOnlyMockServerDialer only allows network connections to the mock server\n\n```go\nfunc (d *OnlyMockServerDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)\n```\n\n","path":"github.com/context-dot-dev/context-dev-cli/internal/mocktest","name":"mocktest","synopsis":"","isRedistributable":true}
