(ctx context.Context)
| 215 | return &net.OpError{Op: "set", Net: "stdio", Source: nil, Addr: nil, Err: errors.New("deadline not supported")} |
| 216 | } |
| 217 | func DialStdIO(ctx context.Context) (*Client, error) { |
| 218 | return newClient(ctx, func(_ context.Context) (net.Conn, error) { |
| 219 | return StdIOConn{}, nil |
| 220 | }) |
| 221 | } |
| 222 | |
| 223 | func newClient(initctx context.Context, connectFunc func(context.Context) (net.Conn, error)) (*Client, error) { |
| 224 | conn, err := connectFunc(initctx) |
no test coverage detected