| 1 | package testsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/ |
| 2 | |
| 3 | import ( |
| 4 | "encoding/jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/" |
| 5 | "flagscip-go gomod github.com/golang/go/src go1.14 flag/" |
| 6 | "fmtscip-go gomod github.com/golang/go/src go1.14 fmt/" |
| 7 | "math/randscip-go gomod github.com/golang/go/src go1.14 `math/rand`/" |
| 8 | "osscip-go gomod github.com/golang/go/src go1.14 os/" |
| 9 | "runtimescip-go gomod github.com/golang/go/src go1.14 runtime/" |
| 10 | "testingscip-go gomod github.com/golang/go/src go1.14 testing/" |
| 11 | "timescip-go gomod github.com/golang/go/src go1.14 time/" |
| 12 | |
| 13 | 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`/" |
| 14 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ "gopkg.in/rethinkdb/rethinkdb-go.v6scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/" |
| 15 | ) |
| 16 | |
| 17 | var sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session. *rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.Sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Session# |
| 18 | var testdatascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testdata. = flagscip-go gomod github.com/golang/go/src go1.14 flag/.Boolscip-go gomod github.com/golang/go/src go1.14 flag/Bool().("rethinkdb.testdata", true, "create test data") |
| 19 | var urlscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url., url1scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url1., url2scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url2., url3scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url3., dbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/db., authKeyscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/authKey. string |
| 20 | |
| 21 | func initscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/init().() { |
| 22 | // Fixing test.testlogfile parsing error on Go 1.13+. |
| 23 | if runtimescip-go gomod github.com/golang/go/src go1.14 runtime/.Versionscip-go gomod github.com/golang/go/src go1.14 runtime/Version().() < "go1.13" { |
| 24 | flagscip-go gomod github.com/golang/go/src go1.14 flag/.Parsescip-go gomod github.com/golang/go/src go1.14 flag/Parse().() |
| 25 | } |
| 26 | |
| 27 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.SetVerbosescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/SetVerbose().(true) |
| 28 | |
| 29 | // If the test is being run by wercker look for the rethink url |
| 30 | urlscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url. = osscip-go gomod github.com/golang/go/src go1.14 os/.Getenvscip-go gomod github.com/golang/go/src go1.14 os/Getenv().("RETHINKDB_URL") |
| 31 | if urlscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url. == "" { |
| 32 | urlscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url. = "localhost:28015" |
| 33 | } |
| 34 | |
| 35 | url1scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url1. = osscip-go gomod github.com/golang/go/src go1.14 os/.Getenvscip-go gomod github.com/golang/go/src go1.14 os/Getenv().("RETHINKDB_URL_1") |
| 36 | if url1scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url1. == "" { |
| 37 | url1scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url1. = "localhost:28016" |
| 38 | } |
| 39 | |
| 40 | url2scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url2. = osscip-go gomod github.com/golang/go/src go1.14 os/.Getenvscip-go gomod github.com/golang/go/src go1.14 os/Getenv().("RETHINKDB_URL_2") |
| 41 | if url2scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url2. == "" { |
| 42 | url2scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url2. = "localhost:28017" |
| 43 | } |
| 44 | |
| 45 | url3scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url3. = osscip-go gomod github.com/golang/go/src go1.14 os/.Getenvscip-go gomod github.com/golang/go/src go1.14 os/Getenv().("RETHINKDB_URL_3") |
| 46 | if url3scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url3. == "" { |
| 47 | url3scip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url3. = "localhost:28018" |
| 48 | } |
| 49 | |
| 50 | dbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/db. = osscip-go gomod github.com/golang/go/src go1.14 os/.Getenvscip-go gomod github.com/golang/go/src go1.14 os/Getenv().("RETHINKDB_DB") |
| 51 | if dbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/db. == "" { |
| 52 | dbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/db. = "test" |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // |
| 57 | // Begin TestMain(), Setup, Teardown |
| 58 | // |
| 59 | func testSetupscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testSetup().(m *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Mscip-go gomod github.com/golang/go/src go1.14 testing/M#) { |
| 60 | var err error |
| 61 | sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session., err = rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.Connectscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connect().(rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.ConnectOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#{ |
| 62 | Addressscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#Address.: urlscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/url., |
| 63 | }) |
| 64 | if err != nil { |
| 65 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log..Fatallnscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/Logger#Fatalln().(err.Error()) |
| 66 | } |
| 67 | |
| 68 | setupTestDatascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/setupTestData().() |
| 69 | } |
| 70 | func testTeardownscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testTeardown().(m *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Mscip-go gomod github.com/golang/go/src go1.14 testing/M#) { |
| 71 | sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session..Closescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Session#Close().() |
| 72 | } |
| 73 | |
| 74 | func testBenchmarkSetupscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testBenchmarkSetup().() { |
| 75 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBDropscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBDrop().("benchmarks").Execscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Exec().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 76 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBCreate().("benchmarks").Execscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Exec().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 77 | |
| 78 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("benchmarks").TableDropscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableDrop().("benchmarks").Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 79 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("benchmarks").TableCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableCreate().("benchmarks").Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 80 | } |
| 81 | |
| 82 | func testBenchmarkTeardownscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testBenchmarkTeardown().() { |
| 83 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBDropscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBDrop().("benchmarks").Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 84 | } |
| 85 | |
| 86 | func TestMainscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TestMain().(m *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Mscip-go gomod github.com/golang/go/src go1.14 testing/M#) { |
| 87 | // seed randomness for use with tests |
| 88 | randscip-go gomod github.com/golang/go/src go1.14 `math/rand`/.Seedscip-go gomod github.com/golang/go/src go1.14 `math/rand`/Seed().(timescip-go gomod github.com/golang/go/src go1.14 time/.Nowscip-go gomod github.com/golang/go/src go1.14 time/Now().().UTCscip-go gomod github.com/golang/go/src go1.14 time/Time#UTC().().UnixNanoscip-go gomod github.com/golang/go/src go1.14 time/Time#UnixNano().()) |
| 89 | |
| 90 | testSetupscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testSetup().(m) |
| 91 | testBenchmarkSetupscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testBenchmarkSetup().() |
| 92 | res := m.Runscip-go gomod github.com/golang/go/src go1.14 testing/M#Run().() |
| 93 | testBenchmarkTeardownscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testBenchmarkTeardown().() |
| 94 | testTeardownscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/testTeardown().(m) |
| 95 | |
| 96 | osscip-go gomod github.com/golang/go/src go1.14 os/.Exitscip-go gomod github.com/golang/go/src go1.14 os/Exit().(res) |
| 97 | } |
| 98 | |
| 99 | // |
| 100 | // End TestMain(), Setup, Teardown |
| 101 | // |
| 102 | |
| 103 | // Hook up gocheck into the gotest runner. |
| 104 | func Testscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Test().(t *testingscip-go gomod github.com/golang/go/src go1.14 testing/.Tscip-go gomod github.com/golang/go/src go1.14 testing/T#) { testscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/.TestingTscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/TestingT().(t) } |
| 105 | |
| 106 | type RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite# struct{} |
| 107 | |
| 108 | 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().(&RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#{}) |
| 109 | |
| 110 | // Expressions used in tests |
| 111 | var nowscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/now. = timescip-go gomod github.com/golang/go/src go1.14 time/.Nowscip-go gomod github.com/golang/go/src go1.14 time/Now().() |
| 112 | var arrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/arr. = []interface{}{1, 2, 3, 4, 5, 6, 7, 8, 9} |
| 113 | var darrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/darr. = []interface{}{1, 1, 2, 2, 3, 3, 5, 5, 6} |
| 114 | var narrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/narr. = []interface{}{ |
| 115 | 1, 2, 3, 4, 5, 6, []interface{}{ |
| 116 | 7.1, 7.2, 7.3, |
| 117 | }, |
| 118 | } |
| 119 | var objscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/obj. = map[string]interface{}{"a": 1, "b": 2, "c": 3} |
| 120 | var nobjscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/nobj. = map[string]interface{}{ |
| 121 | "A": 1, |
| 122 | "B": 2, |
| 123 | "C": map[string]interface{}{ |
| 124 | "1": 3, |
| 125 | "2": 4, |
| 126 | }, |
| 127 | } |
| 128 | |
| 129 | var noDupNumObjListscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/noDupNumObjList. = []interface{}{ |
| 130 | map[string]interface{}{"id": 1, "g1": 1, "g2": 1, "num": 0}, |
| 131 | map[string]interface{}{"id": 2, "g1": 2, "g2": 2, "num": 5}, |
| 132 | map[string]interface{}{"id": 3, "g1": 3, "g2": 2, "num": 10}, |
| 133 | map[string]interface{}{"id": 5, "g1": 2, "g2": 3, "num": 100}, |
| 134 | map[string]interface{}{"id": 6, "g1": 1, "g2": 1, "num": 15}, |
| 135 | map[string]interface{}{"id": 8, "g1": 4, "g2": 2, "num": 50}, |
| 136 | map[string]interface{}{"id": 9, "g1": 2, "g2": 3, "num": 25}, |
| 137 | } |
| 138 | var objListscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/objList. = []interface{}{ |
| 139 | map[string]interface{}{"id": 1, "g1": 1, "g2": 1, "num": 0}, |
| 140 | map[string]interface{}{"id": 2, "g1": 2, "g2": 2, "num": 5}, |
| 141 | map[string]interface{}{"id": 3, "g1": 3, "g2": 2, "num": 10}, |
| 142 | map[string]interface{}{"id": 4, "g1": 2, "g2": 3, "num": 0}, |
| 143 | map[string]interface{}{"id": 5, "g1": 2, "g2": 3, "num": 100}, |
| 144 | map[string]interface{}{"id": 6, "g1": 1, "g2": 1, "num": 15}, |
| 145 | map[string]interface{}{"id": 7, "g1": 1, "g2": 2, "num": 0}, |
| 146 | map[string]interface{}{"id": 8, "g1": 4, "g2": 2, "num": 50}, |
| 147 | map[string]interface{}{"id": 9, "g1": 2, "g2": 3, "num": 25}, |
| 148 | } |
| 149 | var nameListscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/nameList. = []interface{}{ |
| 150 | map[string]interface{}{"id": 1, "first_name": "John", "last_name": "Smith", "gender": "M"}, |
| 151 | map[string]interface{}{"id": 2, "first_name": "Jane", "last_name": "Smith", "gender": "F"}, |
| 152 | } |
| 153 | |
| 154 | type TStrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TStr# string |
| 155 | type TMapscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TMap# map[string]interface{} |
| 156 | |
| 157 | type Tscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T# struct { |
| 158 | Ascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#A. string `rethinkdb:"id, omitempty"` |
| 159 | Bscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#B. int |
| 160 | Cscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#C. int `rethinkdb:"-"` |
| 161 | Dscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#D. map[string]interface{} |
| 162 | Escip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#E. []interface{} |
| 163 | Fscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#F. Xscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X# |
| 164 | } |
| 165 | |
| 166 | type SimpleTscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/SimpleT# struct { |
| 167 | Ascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/SimpleT#A. string |
| 168 | Bscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/SimpleT#B. int |
| 169 | } |
| 170 | |
| 171 | type Xscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X# struct { |
| 172 | XAscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XA. int |
| 173 | XBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XB. string |
| 174 | XCscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XC. []string |
| 175 | XDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XD. Yscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y# |
| 176 | XEscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XE. TStrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TStr# |
| 177 | XFscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XF. []TStrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TStr# |
| 178 | } |
| 179 | |
| 180 | type Yscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y# struct { |
| 181 | YAscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YA. int |
| 182 | YBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YB. map[string]interface{} |
| 183 | YCscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YC. map[string]string |
| 184 | YDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YD. TMapscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TMap# |
| 185 | } |
| 186 | |
| 187 | type PseudoTypesscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/PseudoTypes# struct { |
| 188 | Tscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/PseudoTypes#T. timescip-go gomod github.com/golang/go/src go1.14 time/.Timescip-go gomod github.com/golang/go/src go1.14 time/Time# |
| 189 | Zscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/PseudoTypes#Z. timescip-go gomod github.com/golang/go/src go1.14 time/.Timescip-go gomod github.com/golang/go/src go1.14 time/Time# |
| 190 | Bscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/PseudoTypes#B. []byte |
| 191 | } |
| 192 | |
| 193 | var strscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/str. = Tscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#{ |
| 194 | Ascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#A.: "A", |
| 195 | Bscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#B.: 1, |
| 196 | Cscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#C.: 1, |
| 197 | Dscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#D.: map[string]interface{}{ |
| 198 | "D1": 1, |
| 199 | "D2": "2", |
| 200 | }, |
| 201 | Escip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#E.: []interface{}{ |
| 202 | "E1", "E2", "E3", 4, |
| 203 | }, |
| 204 | Fscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/T#F.: Xscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#{ |
| 205 | XAscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XA.: 2, |
| 206 | XBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XB.: "B", |
| 207 | XCscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XC.: []string{"XC1", "XC2"}, |
| 208 | XDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XD.: Yscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#{ |
| 209 | YAscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YA.: 3, |
| 210 | YBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YB.: map[string]interface{}{ |
| 211 | "1": "1", |
| 212 | "2": "2", |
| 213 | "3": 3, |
| 214 | }, |
| 215 | YCscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YC.: map[string]string{ |
| 216 | "YC1": "YC1", |
| 217 | }, |
| 218 | YDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Y#YD.: TMapscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TMap#{ |
| 219 | "YD1": "YD1", |
| 220 | }, |
| 221 | }, |
| 222 | XEscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XE.: "XE", |
| 223 | XFscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/X#XF.: []TStrscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TStr#{ |
| 224 | "XE1", "XE2", |
| 225 | }, |
| 226 | }, |
| 227 | } |
| 228 | |
| 229 | type Authorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Author# struct { |
| 230 | IDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Author#ID. string `rethinkdb:"id,omitempty"` |
| 231 | Namescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Author#Name. string `rethinkdb:"name"` |
| 232 | } |
| 233 | |
| 234 | type Bookscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Book# struct { |
| 235 | IDscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Book#ID. string `rethinkdb:"id,omitempty"` |
| 236 | Titlescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Book#Title. string `rethinkdb:"title"` |
| 237 | Authorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Book#Author. Authorscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/Author# `rethinkdb:"author_id,reference" rethinkdb_ref:"id"` |
| 238 | } |
| 239 | |
| 240 | type TagsTestscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TagsTest# struct { |
| 241 | Ascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TagsTest#A. string `rethinkdb:"a"` |
| 242 | Bscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TagsTest#B. string `json:"b"` |
| 243 | Cscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/TagsTest#C. string `rethinkdb:"c1" json:"c2"` |
| 244 | } |
| 245 | |
| 246 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkExprscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkExpr().(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#) { |
| 247 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 248 | // Test query |
| 249 | query := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.Exprscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Expr().(true) |
| 250 | err := query.Execscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Exec().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 251 | 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.) |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkNoReplyExprscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkNoReplyExpr().(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#) { |
| 256 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 257 | // Test query |
| 258 | query := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.Exprscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Expr().(true) |
| 259 | err := query.Execscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Exec().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session., rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.ExecOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ExecOpts#{NoReplyscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ExecOpts#NoReply.: true}) |
| 260 | 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.) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkGetscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkGet().(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#) { |
| 265 | // Ensure table + database exist |
| 266 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBCreate().("testb1").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 267 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb1").TableCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableCreate().("TestManyBench1").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 268 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb1").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench1").Deletescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Delete().().RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 269 | |
| 270 | // Insert rows |
| 271 | data := []interface{}{} |
| 272 | for i := 0; i < 100; i++ { |
| 273 | data = append(data, map[string]interface{}{ |
| 274 | "id": i, |
| 275 | }) |
| 276 | } |
| 277 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb1").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench1").Insertscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Insert().(data).Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 278 | |
| 279 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 280 | n := randscip-go gomod github.com/golang/go/src go1.14 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.14 `math/rand`/Intn().(100) |
| 281 | |
| 282 | // Test query |
| 283 | var response interface{} |
| 284 | query := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb1").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench1").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().(n) |
| 285 | res, err := query.Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 286 | 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.) |
| 287 | |
| 288 | err = res.Onescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#One().(&response) |
| 289 | |
| 290 | 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.) |
| 291 | c.Assertscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/C#Assert().(response, JsonEqualsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/JsonEquals., map[string]interface{}{"id": n}) |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkGetStructscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkGetStruct().(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#) { |
| 296 | // Ensure table + database exist |
| 297 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBCreate().("testb2").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 298 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb2").TableCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableCreate().("TestManyBench2").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 299 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb2").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench2").Deletescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Delete().().RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 300 | |
| 301 | // Insert rows |
| 302 | data := []interface{}{} |
| 303 | for i := 0; i < 100; i++ { |
| 304 | data = append(data, map[string]interface{}{ |
| 305 | "id": i, |
| 306 | "name": "Object 1", |
| 307 | "Attrs": []interface{}{map[string]interface{}{ |
| 308 | "Name": "attr 1", |
| 309 | "Value": "value 1", |
| 310 | }}, |
| 311 | }) |
| 312 | } |
| 313 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb2").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench2").Insertscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Insert().(data).Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 314 | |
| 315 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 316 | n := randscip-go gomod github.com/golang/go/src go1.14 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.14 `math/rand`/Intn().(100) |
| 317 | |
| 318 | // Test query |
| 319 | var resObj objectscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/object# |
| 320 | query := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb2").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench2").Getscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Get().(n) |
| 321 | res, err := query.Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 322 | 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.) |
| 323 | |
| 324 | err = res.Onescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#One().(&resObj) |
| 325 | |
| 326 | 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.) |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkSelectManyscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkSelectMany().(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#) { |
| 331 | // Ensure table + database exist |
| 332 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBCreate().("testb3").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 333 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb3").TableCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableCreate().("TestManyBench3").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 334 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb3").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench3").Deletescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Delete().().RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 335 | |
| 336 | // Insert rows |
| 337 | data := []interface{}{} |
| 338 | for i := 0; i < 100; i++ { |
| 339 | data = append(data, map[string]interface{}{ |
| 340 | "id": i, |
| 341 | }) |
| 342 | } |
| 343 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb3").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench3").Insertscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Insert().(data).Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 344 | |
| 345 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 346 | // Test query |
| 347 | res, err := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb3").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench3").Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 348 | 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.) |
| 349 | |
| 350 | var response []map[string]interface{} |
| 351 | err = res.Allscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#All().(&response) |
| 352 | |
| 353 | 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.) |
| 354 | 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`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 100) |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | func (s *RethinkSuitescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#) BenchmarkSelectManyStructscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/RethinkSuite#BenchmarkSelectManyStruct().(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#) { |
| 359 | // Ensure table + database exist |
| 360 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBCreate().("testb4").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 361 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb4").TableCreatescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#TableCreate().("TestManyBench4").RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 362 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb4").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench4").Deletescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Delete().().RunWritescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#RunWrite().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 363 | |
| 364 | // Insert rows |
| 365 | data := []interface{}{} |
| 366 | for i := 0; i < 100; i++ { |
| 367 | data = append(data, map[string]interface{}{ |
| 368 | "id": i, |
| 369 | "name": "Object 1", |
| 370 | "Attrs": []interface{}{map[string]interface{}{ |
| 371 | "Name": "attr 1", |
| 372 | "Value": "value 1", |
| 373 | }}, |
| 374 | }) |
| 375 | } |
| 376 | rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb4").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench4").Insertscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Insert().(data).Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 377 | |
| 378 | for i := 0; i < c.Nscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/timer#N.; i++ { |
| 379 | // Test query |
| 380 | res, err := rscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/.DBscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DB().("testb4").Tablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Table().("TestManyBench4").Runscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#Run().(sessionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/session.) |
| 381 | 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.) |
| 382 | |
| 383 | var response []objectscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/object# |
| 384 | err = res.Allscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Cursor#All().(&response) |
| 385 | |
| 386 | 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.) |
| 387 | 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`/.HasLenscip-go gomod gopkg.in/check.v1 8fa46927fb4f `gopkg.in/check.v1`/HasLen., 100) |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | // Test utils |
| 392 | |
| 393 | // Print variable as JSON |
| 394 | func jsonPrintscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/tests`/jsonPrint().(v interface{}) { |
| 395 | b, err := jsonscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/.MarshalIndentscip-go gomod github.com/golang/go/src go1.14 `encoding/json`/MarshalIndent().(v, "", " ") |
| 396 | if err != nil { |
| 397 | fmtscip-go gomod github.com/golang/go/src go1.14 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.14 fmt/Println().(err) |
| 398 | return |
| 399 | } |
| 400 | |
| 401 | fmtscip-go gomod github.com/golang/go/src go1.14 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.14 fmt/Println().(string(b)) |
| 402 | } |