| 1 | package rethinkdbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ |
| 2 | |
| 3 | import ( |
| 4 | "encoding/binaryscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/" |
| 5 | "encoding/jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/" |
| 6 | "github.com/opentracing/opentracing-goscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/" |
| 7 | "github.com/opentracing/opentracing-go/mocktracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/" |
| 8 | "github.com/stretchr/testify/mockscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/" |
| 9 | "golang.org/x/net/contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/" |
| 10 | testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/ "gopkg.in/check.v1scip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/" |
| 11 | pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/ "gopkg.in/rethinkdb/rethinkdb-go.v6/ql2scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/" |
| 12 | "ioscip-go gomod github.com/golang/go/src go1.14 io/" |
| 13 | "syncscip-go gomod github.com/golang/go/src go1.14 sync/" |
| 14 | "timescip-go gomod github.com/golang/go/src go1.14 time/" |
| 15 | ) |
| 16 | |
| 17 | func runConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/runConnection().(c *Connectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#) <-chan struct{} { |
| 18 | wg := &syncscip-go gomod github.com/golang/go/src go1.14 sync/.WaitGroupscip-go gomod github.com/golang/go/src go1.14 sync/WaitGroup#{} |
| 19 | wg.Addscip-go gomod github.com/golang/go/src go1.14 sync/WaitGroup#Add().(2) |
| 20 | go func() { |
| 21 | c.readSocketscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readSocket().() |
| 22 | wg.Donescip-go gomod github.com/golang/go/src go1.14 sync/WaitGroup#Done().() |
| 23 | }() |
| 24 | go func() { |
| 25 | c.processResponsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponses().() |
| 26 | wg.Donescip-go gomod github.com/golang/go/src go1.14 sync/WaitGroup#Done().() |
| 27 | }() |
| 28 | |
| 29 | doneChan := make(chan struct{}) |
| 30 | go func() { |
| 31 | wg.Waitscip-go gomod github.com/golang/go/src go1.14 sync/WaitGroup#Wait().() |
| 32 | close(doneChan) |
| 33 | }() |
| 34 | return doneChan |
| 35 | } |
| 36 | |
| 37 | type ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite# struct{} |
| 38 | |
| 39 | var _ = testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Suitescip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Suite().(&ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#{}) |
| 40 | |
| 41 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_Okscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_Ok().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 42 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 43 | token := int64(1) |
| 44 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 45 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 46 | respData := serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() |
| 47 | header := respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token, respData) |
| 48 | |
| 49 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 50 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(writeData), nil, nil) |
| 51 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(header, respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen., nil, nil) |
| 52 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", len(respData)).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(respData, len(respData), nil, nil) |
| 53 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Close").Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil) |
| 54 | |
| 55 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 56 | closed := runConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/runConnection().(connection) |
| 57 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 58 | connection.Closescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Close().() |
| 59 | <-closed |
| 60 | |
| 61 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 62 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 63 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_ATOMscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_ATOM.) |
| 64 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 65 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.[0], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#([]byte(`"response"`))) |
| 66 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 67 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 68 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#conn., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., connection) |
| 69 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.ctxscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#ctx., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ctx) |
| 70 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.) |
| 71 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 72 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 73 | } |
| 74 | |
| 75 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_DefaultDBOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_DefaultDBOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 76 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 77 | token := int64(1) |
| 78 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 79 | q2 := q |
| 80 | q2.Optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Opts.["db"], _ = DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Buildscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Build().() |
| 81 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q2) |
| 82 | respData := serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() |
| 83 | header := respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token, respData) |
| 84 | |
| 85 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 86 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(writeData), nil, nil) |
| 87 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(header, respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen., nil, nil) |
| 88 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", len(respData)).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(respData, len(respData), nil, nil) |
| 89 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Close").Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil) |
| 90 | |
| 91 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{Databasescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#Database.: "db"}) |
| 92 | done := runConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/runConnection().(connection) |
| 93 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 94 | connection.Closescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Close().() |
| 95 | <-done |
| 96 | |
| 97 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 98 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 99 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_ATOMscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_ATOM.) |
| 100 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 101 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.[0], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#([]byte(`"response"`))) |
| 102 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 103 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 104 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#conn., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., connection) |
| 105 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.ctxscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#ctx., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ctx) |
| 106 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., response.Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.) |
| 107 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 108 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 109 | } |
| 110 | |
| 111 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_Nilscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_Nil().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 112 | response, cursor, err := (*Connectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#)(nil).Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(nil, Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{}) |
| 113 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ErrConnectionClosedscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ErrConnectionClosed.) |
| 114 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 115 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 116 | } |
| 117 | |
| 118 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_NilConnscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_NilConn().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 119 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{Databasescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#Database.: "db"}) |
| 120 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(nil, Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{}) |
| 121 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ErrConnectionClosedscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ErrConnectionClosed.) |
| 122 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 123 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 124 | } |
| 125 | |
| 126 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_SendFailscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_SendFail().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 127 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 128 | token := int64(1) |
| 129 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 130 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 131 | |
| 132 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 133 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(0, ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF., nil) |
| 134 | |
| 135 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 136 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 137 | |
| 138 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 139 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 140 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., RQLConnectionErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLConnectionError#{rqlErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/rqlError#(ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF..Error())}) |
| 141 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 142 | } |
| 143 | |
| 144 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_NoReplyOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_NoReplyOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 145 | token := int64(1) |
| 146 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 147 | q.Optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Opts.["noreply"] = true |
| 148 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 149 | respData := serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() |
| 150 | header := respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token, respData) |
| 151 | |
| 152 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 153 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(writeData), nil, nil) |
| 154 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(header, respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen., nil, nil) |
| 155 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", len(respData)).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(respData, len(respData), nil, nil) |
| 156 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Close").Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil) |
| 157 | |
| 158 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 159 | done := runConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/runConnection().(connection) |
| 160 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(nil, q) |
| 161 | connection.Closescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Close().() |
| 162 | <-done |
| 163 | |
| 164 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 165 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 166 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 167 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 168 | } |
| 169 | |
| 170 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_TimeoutWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_TimeoutWrite().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 171 | ctx, cancel := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.WithCancelscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/WithCancel().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().()) |
| 172 | token := int64(1) |
| 173 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 174 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 175 | stopData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, newStopQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newStopQuery().(token)) |
| 176 | |
| 177 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 178 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(writeData), nil, nil) |
| 179 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", stopData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(stopData), nil, nil) |
| 180 | |
| 181 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{ReadTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#ReadTimeout.: timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond., WriteTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#WriteTimeout.: timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.}) |
| 182 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. = make(chan tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#, 0) |
| 183 | cancel() |
| 184 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 185 | |
| 186 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 187 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 188 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ErrQueryTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ErrQueryTimeout.) |
| 189 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 190 | } |
| 191 | |
| 192 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_TimeoutReadscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_TimeoutRead().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 193 | ctx, _ := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.WithTimeoutscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/WithTimeout().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().(), 5*timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 194 | token := int64(1) |
| 195 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 196 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 197 | stopData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, newStopQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newStopQuery().(token)) |
| 198 | |
| 199 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 200 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(writeData), nil, 10*timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 201 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", stopData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(len(stopData), nil, nil) |
| 202 | |
| 203 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{ReadTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#ReadTimeout.: timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond., WriteTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#WriteTimeout.: timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.}) |
| 204 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 205 | |
| 206 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 207 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 208 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ErrQueryTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ErrQueryTimeout.) |
| 209 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 210 | } |
| 211 | |
| 212 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_Query_SendFailTracingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_Query_SendFailTracing().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 213 | tracer := mocktracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/.Newscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/New().() |
| 214 | rootSpan := tracer.StartSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#StartSpan().("root") |
| 215 | ctx := opentracingscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/.ContextWithSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/ContextWithSpan().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().(), rootSpan) |
| 216 | token := int64(1) |
| 217 | q := testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("db").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("table").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().("id")) |
| 218 | writeData := serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token, q) |
| 219 | |
| 220 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 221 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Write", writeData).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(0, ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF., nil) |
| 222 | |
| 223 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{UseOpentracingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#UseOpentracing.: true}) |
| 224 | response, cursor, err := connection.Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Query().(ctx, q) |
| 225 | |
| 226 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 227 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 228 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., RQLConnectionErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLConnectionError#{rqlErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/rqlError#(ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF..Error())}) |
| 229 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 230 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(tracer.FinishedSpansscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#FinishedSpans().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 2) |
| 231 | } |
| 232 | |
| 233 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponses_SocketErrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponses_SocketErr().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 234 | promise1 := make(chan responseAndCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#, 1) |
| 235 | promise2 := make(chan responseAndCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#, 1) |
| 236 | promise3 := make(chan responseAndCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#, 1) |
| 237 | |
| 238 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 239 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 240 | |
| 241 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Close").Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil).Runscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Run().(func(args mockscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/.Argumentsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Arguments#) { |
| 242 | close(connection.responseChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#responseChan.) |
| 243 | }) |
| 244 | |
| 245 | done := make(chan struct{}) |
| 246 | go func() { |
| 247 | connection.processResponsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponses().() |
| 248 | close(done) |
| 249 | }() |
| 250 | |
| 251 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. <- tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#{queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#query.: &Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: 1}, promisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#promise.: promise1} |
| 252 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. <- tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#{queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#query.: &Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: 2}, promisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#promise.: promise2} |
| 253 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. <- tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#{queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#query.: &Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: 2}, promisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#promise.: promise3} |
| 254 | timescip-go gomod github.com/golang/go/src go1.14 time/.Sleepscip-go gomod github.com/golang/go/src go1.14 time/Sleep().(5 * timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 255 | connection.responseChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#responseChan. <- responseAndErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndError#{errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndError#err.: ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF.} |
| 256 | <-done |
| 257 | |
| 258 | select { |
| 259 | case f := <-promise1: |
| 260 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#err., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF.) |
| 261 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#response., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 262 | default: |
| 263 | c.Failscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Fail().() |
| 264 | } |
| 265 | select { |
| 266 | case f := <-promise2: |
| 267 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#err., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF.) |
| 268 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#response., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 269 | default: |
| 270 | c.Failscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Fail().() |
| 271 | } |
| 272 | select { |
| 273 | case f := <-promise3: |
| 274 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#err., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF.) |
| 275 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#response., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 276 | default: |
| 277 | c.Failscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Fail().() |
| 278 | } |
| 279 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 280 | } |
| 281 | |
| 282 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponses_StopOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponses_StopOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 283 | promise1 := make(chan responseAndCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#, 1) |
| 284 | |
| 285 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 286 | |
| 287 | done := make(chan struct{}) |
| 288 | go func() { |
| 289 | connection.processResponsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponses().() |
| 290 | close(done) |
| 291 | }() |
| 292 | |
| 293 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. <- tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#{queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#query.: &Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: 1}, promisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#promise.: promise1} |
| 294 | timescip-go gomod github.com/golang/go/src go1.14 time/.Sleepscip-go gomod github.com/golang/go/src go1.14 time/Sleep().(5 * timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 295 | close(connection.responseChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#responseChan.) |
| 296 | <-done |
| 297 | |
| 298 | select { |
| 299 | case f := <-promise1: |
| 300 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#err., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ErrConnectionClosedscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ErrConnectionClosed.) |
| 301 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#response., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 302 | default: |
| 303 | c.Failscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Fail().() |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponses_ResponseFirstscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponses_ResponseFirst().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 308 | promise1 := make(chan responseAndCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#, 1) |
| 309 | response1 := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: 1, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_RUNTIME_ERRORscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_RUNTIME_ERROR., ErrorTypescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#ErrorType.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_INTERNALscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_INTERNAL.} |
| 310 | |
| 311 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 312 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Close").Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil) |
| 313 | |
| 314 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 315 | |
| 316 | go connection.processResponsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponses().() |
| 317 | |
| 318 | connection.responseChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#responseChan. <- responseAndErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndError#{responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndError#response.: response1} |
| 319 | timescip-go gomod github.com/golang/go/src go1.14 time/.Sleepscip-go gomod github.com/golang/go/src go1.14 time/Sleep().(5 * timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 320 | connection.readRequestsChanscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readRequestsChan. <- tokenAndPromisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#{queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#query.: &Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: 1}, promisescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/tokenAndPromise#promise.: promise1} |
| 321 | timescip-go gomod github.com/golang/go/src go1.14 time/.Sleepscip-go gomod github.com/golang/go/src go1.14 time/Sleep().(5 * timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 322 | connection.Closescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Close().() |
| 323 | timescip-go gomod github.com/golang/go/src go1.14 time/.Sleepscip-go gomod github.com/golang/go/src go1.14 time/Sleep().(5 * timescip-go gomod github.com/golang/go/src go1.14 time/.Millisecondscip-go gomod github.com/golang/go/src go1.14 time/Millisecond.) |
| 324 | |
| 325 | select { |
| 326 | case f := <-promise1: |
| 327 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.errscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#err., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLInternalErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLInternalError#{}) |
| 328 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#response., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response1) |
| 329 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(f.cursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/responseAndCursor#cursor., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 330 | default: |
| 331 | c.Failscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Fail().() |
| 332 | } |
| 333 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 334 | } |
| 335 | |
| 336 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_readResponse_TimeoutHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_readResponse_TimeoutHeader().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 337 | timeout := timescip-go gomod github.com/golang/go/src go1.14 time/.Secondscip-go gomod github.com/golang/go/src go1.14 time/Second. |
| 338 | |
| 339 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 340 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil, 0, ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF., nil) |
| 341 | |
| 342 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{ReadTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#ReadTimeout.: timeout}) |
| 343 | |
| 344 | response, err := connection.readResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readResponse().() |
| 345 | |
| 346 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 347 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLConnectionErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLConnectionError#{}) |
| 348 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.isBadscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#isBad().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., true) |
| 349 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 350 | } |
| 351 | |
| 352 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_readResponse_BodySocketErrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_readResponse_BodySocketErr().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 353 | token := int64(5) |
| 354 | respData := serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() |
| 355 | header := respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token, respData) |
| 356 | |
| 357 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 358 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(header, len(header), nil, nil) |
| 359 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", len(respData)).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(nil, 0, ioscip-go gomod github.com/golang/go/src go1.14 io/.EOFscip-go gomod github.com/golang/go/src go1.14 io/EOF., nil) |
| 360 | |
| 361 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 362 | |
| 363 | response, err := connection.readResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readResponse().() |
| 364 | |
| 365 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 366 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLConnectionErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLConnectionError#{}) |
| 367 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.isBadscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#isBad().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., true) |
| 368 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 369 | } |
| 370 | |
| 371 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_readResponse_BodyUnmarshalErrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_readResponse_BodyUnmarshalErr().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 372 | token := int64(5) |
| 373 | respData := serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() |
| 374 | header := respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token, respData) |
| 375 | |
| 376 | conn := &connMockscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/connMock#{} |
| 377 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(header, len(header), nil, nil) |
| 378 | conn.Onscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#On().("Read", len(respData)).Returnscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Call#Return().(make([]byte, len(respData)), len(respData), nil, nil) |
| 379 | |
| 380 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(conn, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 381 | |
| 382 | response, err := connection.readResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#readResponse().() |
| 383 | |
| 384 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 385 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLDriverErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLDriverError#{}) |
| 386 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.isBadscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#isBad().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., true) |
| 387 | conn.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.5.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(c) |
| 388 | } |
| 389 | |
| 390 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_ClientErrOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_ClientErrOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 391 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 392 | token := int64(3) |
| 393 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 394 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_CLIENT_ERRORscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_CLIENT_ERROR.} |
| 395 | |
| 396 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 397 | |
| 398 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 399 | |
| 400 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 401 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 402 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLClientErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLClientError#{}) |
| 403 | } |
| 404 | |
| 405 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_CompileErrOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_CompileErrOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 406 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 407 | token := int64(3) |
| 408 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 409 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_COMPILE_ERRORscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_COMPILE_ERROR.} |
| 410 | |
| 411 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 412 | |
| 413 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 414 | |
| 415 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 416 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 417 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLCompileErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLCompileError#{}) |
| 418 | } |
| 419 | |
| 420 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_RuntimeErrOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_RuntimeErrOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 421 | tracer := mocktracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/.Newscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/New().() |
| 422 | rootSpan := tracer.StartSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#StartSpan().("root") |
| 423 | ctx := opentracingscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/.ContextWithSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/ContextWithSpan().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().(), rootSpan) |
| 424 | qSpan := rootSpan.Tracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Span#Tracer().().StartSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Tracer#StartSpan().("q", opentracingscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/.ChildOfscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/ChildOf().(rootSpan.Contextscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Span#Context().())) |
| 425 | |
| 426 | token := int64(3) |
| 427 | term := Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Table().("test") |
| 428 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token, Termscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Term.: &term} |
| 429 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_RUNTIME_ERRORscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_RUNTIME_ERROR., Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.: []jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{{'e', 'r', 'r'}}} |
| 430 | |
| 431 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 432 | |
| 433 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, qSpan) |
| 434 | |
| 435 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 436 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 437 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLRuntimeErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLRuntimeError#{}) |
| 438 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(tracer.FinishedSpansscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#FinishedSpans().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 439 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(tracer.FinishedSpansscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#FinishedSpans().()[0].Tagsscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockSpan#Tags().()["error"], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., true) |
| 440 | } |
| 441 | |
| 442 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_FirstPartialOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_FirstPartialOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 443 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 444 | token := int64(3) |
| 445 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 446 | rawResponse1 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{1, 2, 3} |
| 447 | rawResponse2 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{3, 4, 5} |
| 448 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_PARTIALscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_PARTIAL., Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.: []jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{rawResponse1, rawResponse2}} |
| 449 | |
| 450 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 451 | |
| 452 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 453 | |
| 454 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 455 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 456 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 457 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.ctxscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#ctx., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ctx) |
| 458 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 2) |
| 459 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[0], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse1) |
| 460 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[1], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse2) |
| 461 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#conn., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., connection) |
| 462 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 463 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 464 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors.[token], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., cursor) |
| 465 | } |
| 466 | |
| 467 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_PartialOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_PartialOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 468 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 469 | token := int64(3) |
| 470 | term := Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Table().("test") |
| 471 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 472 | rawResponse1 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{1, 2, 3} |
| 473 | rawResponse2 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{3, 4, 5} |
| 474 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_PARTIALscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_PARTIAL., Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.: []jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{rawResponse1, rawResponse2}} |
| 475 | |
| 476 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 477 | oldCursor := newCursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newCursor().(ctx, connection, "Cursor", token, &term, q.Optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Opts.) |
| 478 | connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors.[token] = oldCursor |
| 479 | |
| 480 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 481 | |
| 482 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 483 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., oldCursor) |
| 484 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 2) |
| 485 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[0], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse1) |
| 486 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[1], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse2) |
| 487 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 488 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 489 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors.[token], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., cursor) |
| 490 | } |
| 491 | |
| 492 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_SequenceOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_SequenceOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 493 | tracer := mocktracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/.Newscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/New().() |
| 494 | rootSpan := tracer.StartSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#StartSpan().("root") |
| 495 | ctx := opentracingscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/.ContextWithSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/ContextWithSpan().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().(), rootSpan) |
| 496 | qSpan := rootSpan.Tracerscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Span#Tracer().().StartSpanscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Tracer#StartSpan().("q", opentracingscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/.ChildOfscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/ChildOf().(rootSpan.Contextscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go`/Span#Context().())) |
| 497 | |
| 498 | token := int64(3) |
| 499 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 500 | rawResponse1 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{1, 2, 3} |
| 501 | rawResponse2 := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{3, 4, 5} |
| 502 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_SEQUENCEscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_SEQUENCE., Responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Responses.: []jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.RawMessagescip-go gomod github.com/golang/go/src go1.14 `encoding/json`/RawMessage#{rawResponse1, rawResponse2}} |
| 503 | |
| 504 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 505 | |
| 506 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, qSpan) |
| 507 | |
| 508 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 509 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.NotNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/NotNil.) |
| 510 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#token., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., token) |
| 511 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.ctxscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#ctx., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., ctx) |
| 512 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 2) |
| 513 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[0], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse1) |
| 514 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.responsesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#responses.[1], testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.DeepEqualsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/DeepEquals., rawResponse2) |
| 515 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor.connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#conn., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., connection) |
| 516 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 517 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 0) |
| 518 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(tracer.FinishedSpansscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#FinishedSpans().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 1) |
| 519 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(tracer.FinishedSpansscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockTracer#FinishedSpans().()[0].Tagsscip-go gomod github.com/opentracing/opentracing-go v1.1.0 `github.com/opentracing/opentracing-go/mocktracer`/MockSpan#Tags().(), testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 0) |
| 520 | } |
| 521 | |
| 522 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_WaitOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_WaitOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 523 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 524 | token := int64(3) |
| 525 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 526 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_WAIT_COMPLETEscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_WAIT_COMPLETE.} |
| 527 | |
| 528 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 529 | connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors.[token] = &Cursorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#{} |
| 530 | |
| 531 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 532 | |
| 533 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Equalsscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/Equals., response) |
| 534 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 535 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 536 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(connection.cursorsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#cursors., testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 0) |
| 537 | } |
| 538 | |
| 539 | func (s *ConnectionSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#) TestConnection_processResponse_UnexpectedOkscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectionSuite#TestConnection_processResponse_UnexpectedOk().(c *testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.Cscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#) { |
| 540 | ctx := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().() |
| 541 | token := int64(3) |
| 542 | q := Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Token.: token} |
| 543 | response := &Responsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#{Tokenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Token.: token, Typescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Response#Type.: 99} |
| 544 | |
| 545 | connection := newConnectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newConnection().(nil, "addr", &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}) |
| 546 | |
| 547 | resp, cursor, err := connection.processResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#processResponse().(ctx, q, response, nil) |
| 548 | |
| 549 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(resp, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 550 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(cursor, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.IsNilscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/IsNil.) |
| 551 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(err, testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.FitsTypeOfscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/FitsTypeOf., RQLDriverErrorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/RQLDriverError#{}) |
| 552 | } |
| 553 | |
| 554 | func testQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/testQuery().(t Termscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#) Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query# { |
| 555 | q, _ := newQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/newQuery().( |
| 556 | t, |
| 557 | map[string]interface{}{}, |
| 558 | &ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{}, |
| 559 | ) |
| 560 | return q |
| 561 | } |
| 562 | |
| 563 | func respHeaderscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeader().(token int64, msg []byte) []byte { |
| 564 | header := [respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.]byte{} |
| 565 | binaryscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/.LittleEndianscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/LittleEndian..PutUint64scip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/littleEndian#PutUint64().(header[:], uint64(token)) |
| 566 | binaryscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/.LittleEndianscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/LittleEndian..PutUint32scip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/littleEndian#PutUint32().(header[8:], uint32(len(msg))) |
| 567 | return header[:] |
| 568 | } |
| 569 | |
| 570 | func serializeQueryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeQuery().(token int64, q Queryscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#) []byte { |
| 571 | b, _ := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.Marshalscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/Marshal().(q.Buildscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Query#Build().()) |
| 572 | msg := make([]byte, len(b)+respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.+1) |
| 573 | binaryscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/.LittleEndianscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/LittleEndian..PutUint64scip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/littleEndian#PutUint64().(msg, uint64(token)) |
| 574 | binaryscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/.LittleEndianscip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/LittleEndian..PutUint32scip-go gomod github.com/golang/go/src go1.14 `encoding/binary`/littleEndian#PutUint32().(msg[8:], uint32(len(b)+1)) |
| 575 | copy(msg[respHeaderLenscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/respHeaderLen.:], b) |
| 576 | msg[len(msg)-1] = '\n' // encoder.Marshal do this, json.Marshal doesn't |
| 577 | return msg |
| 578 | } |
| 579 | |
| 580 | func serializeAtomResponsescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/serializeAtomResponse().() []byte { |
| 581 | b, _ := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.Marshalscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/Marshal().(map[string]interface{}{ |
| 582 | "t": pscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/.Response_SUCCESS_ATOMscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/ql2`/Response_SUCCESS_ATOM., |
| 583 | "r": []interface{}{"response"}, |
| 584 | }) |
| 585 | return b |
| 586 | } |