gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/internal/integration/reql_tests/reql_changefeeds_edge_test.go (about)

     1  // Code generated by gen_tests.py and process_polyglot.py.
     2  // Do not edit this file directly.
     3  // The template for this file is located at:
     4  // ../template.go.tpl
     5  package reql_tests
     6  
     7  import (
     8  	"testing"
     9  	"time"
    10  
    11  	"github.com/stretchr/testify/suite"
    12  	r "gopkg.in/rethinkdb/rethinkdb-go.v6"
    13  	"gopkg.in/rethinkdb/rethinkdb-go.v6/internal/compare"
    14  )
    15  
    16  // Test edge cases of changefeed operations
    17  func TestChangefeedsEdgeSuite(t *testing.T) {
    18  	suite.Run(t, new(ChangefeedsEdgeSuite))
    19  }
    20  
    21  type ChangefeedsEdgeSuite struct {
    22  	suite.Suite
    23  
    24  	session *r.Session
    25  }
    26  
    27  func (suite *ChangefeedsEdgeSuite) SetupTest() {
    28  	suite.T().Log("Setting up ChangefeedsEdgeSuite")
    29  	// Use imports to prevent errors
    30  	_ = time.Time{}
    31  	_ = compare.AnythingIsFine
    32  
    33  	session, err := r.Connect(r.ConnectOpts{
    34  		Address: url,
    35  	})
    36  	suite.Require().NoError(err, "Error returned when connecting to server")
    37  	suite.session = session
    38  
    39  	r.DBDrop("test").Exec(suite.session)
    40  	err = r.DBCreate("test").Exec(suite.session)
    41  	suite.Require().NoError(err)
    42  	err = r.DB("test").Wait().Exec(suite.session)
    43  	suite.Require().NoError(err)
    44  
    45  	r.DB("test").TableDrop("tbl").Exec(suite.session)
    46  	err = r.DB("test").TableCreate("tbl").Exec(suite.session)
    47  	suite.Require().NoError(err)
    48  	err = r.DB("test").Table("tbl").Wait().Exec(suite.session)
    49  	suite.Require().NoError(err)
    50  }
    51  
    52  func (suite *ChangefeedsEdgeSuite) TearDownSuite() {
    53  	suite.T().Log("Tearing down ChangefeedsEdgeSuite")
    54  
    55  	if suite.session != nil {
    56  		r.DB("rethinkdb").Table("_debug_scratch").Delete().Exec(suite.session)
    57  		r.DB("test").TableDrop("tbl").Exec(suite.session)
    58  		r.DBDrop("test").Exec(suite.session)
    59  
    60  		suite.session.Close()
    61  	}
    62  }
    63  
    64  func (suite *ChangefeedsEdgeSuite) TestCases() {
    65  	suite.T().Log("Running ChangefeedsEdgeSuite: Test edge cases of changefeed operations")
    66  
    67  	tbl := r.DB("test").Table("tbl")
    68  	_ = tbl // Prevent any noused variable errors
    69  
    70  	// changefeeds/edge.yaml line #5
    71  	// common_prefix = r.expr([0,1,2,3,4,5,6,7,8])
    72  	suite.T().Log("Possibly executing: var common_prefix r.Term = r.Expr([]interface{}{0, 1, 2, 3, 4, 5, 6, 7, 8})")
    73  
    74  	common_prefix := r.Expr([]interface{}{0, 1, 2, 3, 4, 5, 6, 7, 8})
    75  	_ = common_prefix // Prevent any noused variable errors
    76  
    77  	{
    78  		// changefeeds/edge.yaml line #8
    79  		/* ({'created':1}) */
    80  		var expected_ map[interface{}]interface{} = map[interface{}]interface{}{"created": 1}
    81  		/* tbl.index_create('sindex', lambda row:common_prefix.append(row['value'])) */
    82  
    83  		suite.T().Log("About to run line #8: tbl.IndexCreateFunc('sindex', func(row r.Term) interface{} { return common_prefix.Append(row.AtIndex('value'))})")
    84  
    85  		runAndAssert(suite.Suite, expected_, tbl.IndexCreateFunc("sindex", func(row r.Term) interface{} { return common_prefix.Append(row.AtIndex("value")) }), suite.session, r.RunOpts{
    86  			GeometryFormat: "raw",
    87  			GroupFormat:    "map",
    88  		})
    89  		suite.T().Log("Finished running line #8")
    90  	}
    91  
    92  	{
    93  		// changefeeds/edge.yaml line #11
    94  		/* AnythingIsFine */
    95  		var expected_ string = compare.AnythingIsFine
    96  		/* tbl.index_wait('sindex') */
    97  
    98  		suite.T().Log("About to run line #11: tbl.IndexWait('sindex')")
    99  
   100  		runAndAssert(suite.Suite, expected_, tbl.IndexWait("sindex"), suite.session, r.RunOpts{
   101  			GeometryFormat: "raw",
   102  			GroupFormat:    "map",
   103  		})
   104  		suite.T().Log("Finished running line #11")
   105  	}
   106  
   107  	// changefeeds/edge.yaml line #14
   108  	// pre = r.range(7).coerce_to('array').add(r.range(10,70).coerce_to('array')).append(100).map(r.row.coerce_to('string'))
   109  	suite.T().Log("Possibly executing: var pre r.Term = r.Range(7).CoerceTo('array').Add(r.Range(10, 70).CoerceTo('array')).Append(100).Map(r.Row.CoerceTo('string'))")
   110  
   111  	pre := maybeRun(r.Range(7).CoerceTo("array").Add(r.Range(10, 70).CoerceTo("array")).Append(100).Map(r.Row.CoerceTo("string")), suite.session, r.RunOpts{})
   112  	_ = pre // Prevent any noused variable errors
   113  
   114  	// changefeeds/edge.yaml line #16
   115  	// mid = r.range(2,9).coerce_to('array').add(r.range(20,90).coerce_to('array')).map(r.row.coerce_to('string'))
   116  	suite.T().Log("Possibly executing: var mid r.Term = r.Range(2, 9).CoerceTo('array').Add(r.Range(20, 90).CoerceTo('array')).Map(r.Row.CoerceTo('string'))")
   117  
   118  	mid := maybeRun(r.Range(2, 9).CoerceTo("array").Add(r.Range(20, 90).CoerceTo("array")).Map(r.Row.CoerceTo("string")), suite.session, r.RunOpts{})
   119  	_ = mid // Prevent any noused variable errors
   120  
   121  	// changefeeds/edge.yaml line #18
   122  	// post = r.range(3,10).coerce_to('array').add(r.range(30,100).coerce_to('array')).map(r.row.coerce_to('string'))
   123  	suite.T().Log("Possibly executing: var post r.Term = r.Range(3, 10).CoerceTo('array').Add(r.Range(30, 100).CoerceTo('array')).Map(r.Row.CoerceTo('string'))")
   124  
   125  	post := maybeRun(r.Range(3, 10).CoerceTo("array").Add(r.Range(30, 100).CoerceTo("array")).Map(r.Row.CoerceTo("string")), suite.session, r.RunOpts{})
   126  	_ = post // Prevent any noused variable errors
   127  
   128  	// changefeeds/edge.yaml line #21
   129  	// erroredres = r.range(2).coerce_to('array').add(r.range(10, 20).coerce_to('array')).append(100).map(r.row.coerce_to('string'))
   130  	suite.T().Log("Possibly executing: var erroredres r.Term = r.Range(2).CoerceTo('array').Add(r.Range(10, 20).CoerceTo('array')).Append(100).Map(r.Row.CoerceTo('string'))")
   131  
   132  	erroredres := maybeRun(r.Range(2).CoerceTo("array").Add(r.Range(10, 20).CoerceTo("array")).Append(100).Map(r.Row.CoerceTo("string")), suite.session, r.RunOpts{})
   133  	_ = erroredres // Prevent any noused variable errors
   134  
   135  	// changefeeds/edge.yaml line #26
   136  	// pre_changes = tbl.between(r.minval, common_prefix.append('7'), index='sindex').changes(squash=False).limit(len(pre))['new_val']['value']
   137  	suite.T().Log("Possibly executing: var pre_changes r.Term = tbl.Between(r.MinVal, common_prefix.Append('7')).OptArgs(r.BetweenOpts{Index: 'sindex', }).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(pre)).AtIndex('new_val').AtIndex('value')")
   138  
   139  	pre_changes := maybeRun(tbl.Between(r.MinVal, common_prefix.Append("7")).OptArgs(r.BetweenOpts{Index: "sindex"}).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(pre)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   140  	_ = pre_changes // Prevent any noused variable errors
   141  
   142  	// changefeeds/edge.yaml line #29
   143  	// mid_changes = tbl.between(common_prefix.append('2'), common_prefix.append('9'), index='sindex').changes(squash=False).limit(len(post))['new_val']['value']
   144  	suite.T().Log("Possibly executing: var mid_changes r.Term = tbl.Between(common_prefix.Append('2'), common_prefix.Append('9')).OptArgs(r.BetweenOpts{Index: 'sindex', }).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(post)).AtIndex('new_val').AtIndex('value')")
   145  
   146  	mid_changes := maybeRun(tbl.Between(common_prefix.Append("2"), common_prefix.Append("9")).OptArgs(r.BetweenOpts{Index: "sindex"}).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(post)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   147  	_ = mid_changes // Prevent any noused variable errors
   148  
   149  	// changefeeds/edge.yaml line #32
   150  	// post_changes = tbl.between(common_prefix.append('3'), r.maxval, index='sindex').changes(squash=False).limit(len(mid))['new_val']['value']
   151  	suite.T().Log("Possibly executing: var post_changes r.Term = tbl.Between(common_prefix.Append('3'), r.MaxVal).OptArgs(r.BetweenOpts{Index: 'sindex', }).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(mid)).AtIndex('new_val').AtIndex('value')")
   152  
   153  	post_changes := maybeRun(tbl.Between(common_prefix.Append("3"), r.MaxVal).OptArgs(r.BetweenOpts{Index: "sindex"}).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(mid)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   154  	_ = post_changes // Prevent any noused variable errors
   155  
   156  	// changefeeds/edge.yaml line #38
   157  	// premap_changes1 = tbl.map(r.branch(r.row['value'].lt('2'), r.row, r.row["dummy"])).changes(squash=False).limit(len(erroredres))['new_val']['value']
   158  	suite.T().Log("Possibly executing: var premap_changes1 r.Term = tbl.Map(r.Branch(r.Row.AtIndex('value').Lt('2'), r.Row, r.Row.AtIndex('dummy'))).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   159  
   160  	premap_changes1 := maybeRun(tbl.Map(r.Branch(r.Row.AtIndex("value").Lt("2"), r.Row, r.Row.AtIndex("dummy"))).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   161  	_ = premap_changes1 // Prevent any noused variable errors
   162  
   163  	// changefeeds/edge.yaml line #42
   164  	// postmap_changes1 = tbl.changes(squash=False).map(r.branch(r.row['new_val']['value'].lt('2'), r.row, r.row["dummy"])).limit(len(erroredres))['new_val']['value']
   165  	suite.T().Log("Possibly executing: var postmap_changes1 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Map(r.Branch(r.Row.AtIndex('new_val').AtIndex('value').Lt('2'), r.Row, r.Row.AtIndex('dummy'))).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   166  
   167  	postmap_changes1 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Map(r.Branch(r.Row.AtIndex("new_val").AtIndex("value").Lt("2"), r.Row, r.Row.AtIndex("dummy"))).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   168  	_ = postmap_changes1 // Prevent any noused variable errors
   169  
   170  	// changefeeds/edge.yaml line #46
   171  	// prefilter_changes1 = tbl.filter(r.branch(r.row['value'].lt('2'), True, r.row["dummy"])).changes(squash=False).limit(len(erroredres))['new_val']['value']
   172  	suite.T().Log("Possibly executing: var prefilter_changes1 r.Term = tbl.Filter(r.Branch(r.Row.AtIndex('value').Lt('2'), true, r.Row.AtIndex('dummy'))).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   173  
   174  	prefilter_changes1 := maybeRun(tbl.Filter(r.Branch(r.Row.AtIndex("value").Lt("2"), true, r.Row.AtIndex("dummy"))).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   175  	_ = prefilter_changes1 // Prevent any noused variable errors
   176  
   177  	// changefeeds/edge.yaml line #50
   178  	// postfilter_changes1 = tbl.changes(squash=False).filter(r.branch(r.row['new_val']['value'].lt('2'), True, r.row["dummy"])).limit(len(erroredres))['new_val']['value']
   179  	suite.T().Log("Possibly executing: var postfilter_changes1 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Filter(r.Branch(r.Row.AtIndex('new_val').AtIndex('value').Lt('2'), true, r.Row.AtIndex('dummy'))).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   180  
   181  	postfilter_changes1 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Filter(r.Branch(r.Row.AtIndex("new_val").AtIndex("value").Lt("2"), true, r.Row.AtIndex("dummy"))).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   182  	_ = postfilter_changes1 // Prevent any noused variable errors
   183  
   184  	// changefeeds/edge.yaml line #56
   185  	// premap_changes2 = tbl.map(r.branch(r.row['value'].lt('2'), r.row, r.expr([])[1])).changes(squash=False).limit(len(erroredres))['new_val']['value']
   186  	suite.T().Log("Possibly executing: var premap_changes2 r.Term = tbl.Map(r.Branch(r.Row.AtIndex('value').Lt('2'), r.Row, r.Expr([]interface{}{}).AtIndex(1))).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   187  
   188  	premap_changes2 := maybeRun(tbl.Map(r.Branch(r.Row.AtIndex("value").Lt("2"), r.Row, r.Expr([]interface{}{}).AtIndex(1))).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   189  	_ = premap_changes2 // Prevent any noused variable errors
   190  
   191  	// changefeeds/edge.yaml line #60
   192  	// postmap_changes2 = tbl.changes(squash=False).map(r.branch(r.row['new_val']['value'].lt('2'), r.row, r.expr([])[1])).limit(len(erroredres))['new_val']['value']
   193  	suite.T().Log("Possibly executing: var postmap_changes2 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Map(r.Branch(r.Row.AtIndex('new_val').AtIndex('value').Lt('2'), r.Row, r.Expr([]interface{}{}).AtIndex(1))).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   194  
   195  	postmap_changes2 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Map(r.Branch(r.Row.AtIndex("new_val").AtIndex("value").Lt("2"), r.Row, r.Expr([]interface{}{}).AtIndex(1))).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   196  	_ = postmap_changes2 // Prevent any noused variable errors
   197  
   198  	// changefeeds/edge.yaml line #64
   199  	// prefilter_changes2 = tbl.filter(r.branch(r.row['value'].lt('2'), True, r.expr([])[1])).changes(squash=False).limit(len(erroredres))['new_val']['value']
   200  	suite.T().Log("Possibly executing: var prefilter_changes2 r.Term = tbl.Filter(r.Branch(r.Row.AtIndex('value').Lt('2'), true, r.Expr([]interface{}{}).AtIndex(1))).Changes().OptArgs(r.ChangesOpts{Squash: false, }).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   201  
   202  	prefilter_changes2 := maybeRun(tbl.Filter(r.Branch(r.Row.AtIndex("value").Lt("2"), true, r.Expr([]interface{}{}).AtIndex(1))).Changes().OptArgs(r.ChangesOpts{Squash: false}).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   203  	_ = prefilter_changes2 // Prevent any noused variable errors
   204  
   205  	// changefeeds/edge.yaml line #68
   206  	// postfilter_changes2 = tbl.changes(squash=False).filter(r.branch(r.row['new_val']['value'].lt('2'), True, r.expr([])[1])).limit(len(erroredres))['new_val']['value']
   207  	suite.T().Log("Possibly executing: var postfilter_changes2 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Filter(r.Branch(r.Row.AtIndex('new_val').AtIndex('value').Lt('2'), true, r.Expr([]interface{}{}).AtIndex(1))).Limit(maybeLen(erroredres)).AtIndex('new_val').AtIndex('value')")
   208  
   209  	postfilter_changes2 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Filter(r.Branch(r.Row.AtIndex("new_val").AtIndex("value").Lt("2"), true, r.Expr([]interface{}{}).AtIndex(1))).Limit(maybeLen(erroredres)).AtIndex("new_val").AtIndex("value"), suite.session, r.RunOpts{})
   210  	_ = postfilter_changes2 // Prevent any noused variable errors
   211  
   212  	// changefeeds/edge.yaml line #73
   213  	// nondetermmap = r.branch(r.random().gt(0.5), r.row, r.error("dummy"))
   214  	suite.T().Log("Possibly executing: var nondetermmap r.Term = r.Branch(r.Random().Gt(0.5), r.Row, r.Error('dummy'))")
   215  
   216  	nondetermmap := r.Branch(r.Random().Gt(0.5), r.Row, r.Error("dummy"))
   217  	_ = nondetermmap // Prevent any noused variable errors
   218  
   219  	// changefeeds/edge.yaml line #77
   220  	// nondetermfilter = lambda row:r.random().gt(0.5)
   221  	suite.T().Log("Possibly executing: var nondetermfilter func() = func(row interface{}) interface{} { return r.Random().Gt(0.5)}")
   222  
   223  	nondetermfilter := func(row interface{}) interface{} { return r.Random().Gt(0.5) }
   224  	_ = nondetermfilter // Prevent any noused variable errors
   225  
   226  	{
   227  		// changefeeds/edge.yaml line #83
   228  		/* err('ReqlQueryLogicError', 'Cannot call `changes` after a non-deterministic function.') */
   229  		var expected_ Err = err("ReqlQueryLogicError", "Cannot call `changes` after a non-deterministic function.")
   230  		/* tbl.map(nondetermmap).changes(squash=False) */
   231  
   232  		suite.T().Log("About to run line #83: tbl.Map(nondetermmap).Changes().OptArgs(r.ChangesOpts{Squash: false, })")
   233  
   234  		runAndAssert(suite.Suite, expected_, tbl.Map(nondetermmap).Changes().OptArgs(r.ChangesOpts{Squash: false}), suite.session, r.RunOpts{
   235  			GeometryFormat: "raw",
   236  			GroupFormat:    "map",
   237  		})
   238  		suite.T().Log("Finished running line #83")
   239  	}
   240  
   241  	// changefeeds/edge.yaml line #88
   242  	// postmap_changes3 = tbl.changes(squash=False).map(nondetermmap).limit(100)
   243  	suite.T().Log("Possibly executing: var postmap_changes3 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Map(nondetermmap).Limit(100)")
   244  
   245  	postmap_changes3 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Map(nondetermmap).Limit(100), suite.session, r.RunOpts{})
   246  	_ = postmap_changes3 // Prevent any noused variable errors
   247  
   248  	{
   249  		// changefeeds/edge.yaml line #92
   250  		/* err('ReqlQueryLogicError', 'Cannot call `changes` after a non-deterministic function.') */
   251  		var expected_ Err = err("ReqlQueryLogicError", "Cannot call `changes` after a non-deterministic function.")
   252  		/* tbl.filter(nondetermfilter).changes(squash=False) */
   253  
   254  		suite.T().Log("About to run line #92: tbl.Filter(nondetermfilter).Changes().OptArgs(r.ChangesOpts{Squash: false, })")
   255  
   256  		runAndAssert(suite.Suite, expected_, tbl.Filter(nondetermfilter).Changes().OptArgs(r.ChangesOpts{Squash: false}), suite.session, r.RunOpts{
   257  			GeometryFormat: "raw",
   258  			GroupFormat:    "map",
   259  		})
   260  		suite.T().Log("Finished running line #92")
   261  	}
   262  
   263  	// changefeeds/edge.yaml line #97
   264  	// postfilter_changes3 = tbl.changes(squash=False).filter(nondetermfilter).limit(4)
   265  	suite.T().Log("Possibly executing: var postfilter_changes3 r.Term = tbl.Changes().OptArgs(r.ChangesOpts{Squash: false, }).Filter(nondetermfilter).Limit(4)")
   266  
   267  	postfilter_changes3 := maybeRun(tbl.Changes().OptArgs(r.ChangesOpts{Squash: false}).Filter(nondetermfilter).Limit(4), suite.session, r.RunOpts{})
   268  	_ = postfilter_changes3 // Prevent any noused variable errors
   269  
   270  	{
   271  		// changefeeds/edge.yaml line #100
   272  		/* ({'skipped':0,'deleted':0,'unchanged':0,'errors':0,'replaced':0,'inserted':101}) */
   273  		var expected_ map[interface{}]interface{} = map[interface{}]interface{}{"skipped": 0, "deleted": 0, "unchanged": 0, "errors": 0, "replaced": 0, "inserted": 101}
   274  		/* tbl.insert(r.range(101).map({'id':r.uuid().coerce_to('binary').slice(0,r.random(4,24)).coerce_to('string'),'value':r.row.coerce_to('string')})) */
   275  
   276  		suite.T().Log("About to run line #100: tbl.Insert(r.Range(101).Map(map[interface{}]interface{}{'id': r.UUID().CoerceTo('binary').Slice(0, r.Random(4, 24)).CoerceTo('string'), 'value': r.Row.CoerceTo('string'), }))")
   277  
   278  		runAndAssert(suite.Suite, expected_, tbl.Insert(r.Range(101).Map(map[interface{}]interface{}{"id": r.UUID().CoerceTo("binary").Slice(0, r.Random(4, 24)).CoerceTo("string"), "value": r.Row.CoerceTo("string")})), suite.session, r.RunOpts{
   279  			GeometryFormat: "raw",
   280  			GroupFormat:    "map",
   281  		})
   282  		suite.T().Log("Finished running line #100")
   283  	}
   284  
   285  	{
   286  		// changefeeds/edge.yaml line #105
   287  		/* bag(pre) */
   288  		var expected_ compare.Expected = compare.UnorderedMatch(pre)
   289  		/* pre_changes */
   290  
   291  		suite.T().Log("About to run line #105: pre_changes")
   292  
   293  		runAndAssert(suite.Suite, expected_, pre_changes, suite.session, r.RunOpts{
   294  			GeometryFormat: "raw",
   295  			GroupFormat:    "map",
   296  		})
   297  		suite.T().Log("Finished running line #105")
   298  	}
   299  
   300  	{
   301  		// changefeeds/edge.yaml line #108
   302  		/* bag(mid) */
   303  		var expected_ compare.Expected = compare.UnorderedMatch(mid)
   304  		/* mid_changes */
   305  
   306  		suite.T().Log("About to run line #108: mid_changes")
   307  
   308  		runAndAssert(suite.Suite, expected_, mid_changes, suite.session, r.RunOpts{
   309  			GeometryFormat: "raw",
   310  			GroupFormat:    "map",
   311  		})
   312  		suite.T().Log("Finished running line #108")
   313  	}
   314  
   315  	{
   316  		// changefeeds/edge.yaml line #111
   317  		/* bag(post) */
   318  		var expected_ compare.Expected = compare.UnorderedMatch(post)
   319  		/* post_changes */
   320  
   321  		suite.T().Log("About to run line #111: post_changes")
   322  
   323  		runAndAssert(suite.Suite, expected_, post_changes, suite.session, r.RunOpts{
   324  			GeometryFormat: "raw",
   325  			GroupFormat:    "map",
   326  		})
   327  		suite.T().Log("Finished running line #111")
   328  	}
   329  
   330  	{
   331  		// changefeeds/edge.yaml line #114
   332  		/* bag(erroredres) */
   333  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   334  		/* premap_changes1 */
   335  
   336  		suite.T().Log("About to run line #114: premap_changes1")
   337  
   338  		runAndAssert(suite.Suite, expected_, premap_changes1, suite.session, r.RunOpts{
   339  			GeometryFormat: "raw",
   340  			GroupFormat:    "map",
   341  		})
   342  		suite.T().Log("Finished running line #114")
   343  	}
   344  
   345  	{
   346  		// changefeeds/edge.yaml line #117
   347  		/* bag(erroredres) */
   348  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   349  		/* premap_changes2 */
   350  
   351  		suite.T().Log("About to run line #117: premap_changes2")
   352  
   353  		runAndAssert(suite.Suite, expected_, premap_changes2, suite.session, r.RunOpts{
   354  			GeometryFormat: "raw",
   355  			GroupFormat:    "map",
   356  		})
   357  		suite.T().Log("Finished running line #117")
   358  	}
   359  
   360  	{
   361  		// changefeeds/edge.yaml line #120
   362  		/* err('ReqlNonExistenceError', "No attribute `dummy` in object:") */
   363  		var expected_ Err = err("ReqlNonExistenceError", "No attribute `dummy` in object:")
   364  		/* postmap_changes1 */
   365  
   366  		suite.T().Log("About to run line #120: postmap_changes1")
   367  
   368  		runAndAssert(suite.Suite, expected_, postmap_changes1, suite.session, r.RunOpts{
   369  			GeometryFormat: "raw",
   370  			GroupFormat:    "map",
   371  		})
   372  		suite.T().Log("Finished running line #120")
   373  	}
   374  
   375  	{
   376  		// changefeeds/edge.yaml line #123
   377  		/* err('ReqlNonExistenceError', "Index out of bounds:" + " 1") */
   378  		var expected_ Err = err("ReqlNonExistenceError", "Index out of bounds:"+" 1")
   379  		/* postmap_changes2 */
   380  
   381  		suite.T().Log("About to run line #123: postmap_changes2")
   382  
   383  		runAndAssert(suite.Suite, expected_, postmap_changes2, suite.session, r.RunOpts{
   384  			GeometryFormat: "raw",
   385  			GroupFormat:    "map",
   386  		})
   387  		suite.T().Log("Finished running line #123")
   388  	}
   389  
   390  	{
   391  		// changefeeds/edge.yaml line #126
   392  		/* err('ReqlUserError', "dummy") */
   393  		var expected_ Err = err("ReqlUserError", "dummy")
   394  		/* postmap_changes3 */
   395  
   396  		suite.T().Log("About to run line #126: postmap_changes3")
   397  
   398  		runAndAssert(suite.Suite, expected_, postmap_changes3, suite.session, r.RunOpts{
   399  			GeometryFormat: "raw",
   400  			GroupFormat:    "map",
   401  		})
   402  		suite.T().Log("Finished running line #126")
   403  	}
   404  
   405  	{
   406  		// changefeeds/edge.yaml line #129
   407  		/* bag(erroredres) */
   408  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   409  		/* prefilter_changes1 */
   410  
   411  		suite.T().Log("About to run line #129: prefilter_changes1")
   412  
   413  		runAndAssert(suite.Suite, expected_, prefilter_changes1, suite.session, r.RunOpts{
   414  			GeometryFormat: "raw",
   415  			GroupFormat:    "map",
   416  		})
   417  		suite.T().Log("Finished running line #129")
   418  	}
   419  
   420  	{
   421  		// changefeeds/edge.yaml line #132
   422  		/* bag(erroredres) */
   423  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   424  		/* prefilter_changes2 */
   425  
   426  		suite.T().Log("About to run line #132: prefilter_changes2")
   427  
   428  		runAndAssert(suite.Suite, expected_, prefilter_changes2, suite.session, r.RunOpts{
   429  			GeometryFormat: "raw",
   430  			GroupFormat:    "map",
   431  		})
   432  		suite.T().Log("Finished running line #132")
   433  	}
   434  
   435  	{
   436  		// changefeeds/edge.yaml line #135
   437  		/* bag(erroredres) */
   438  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   439  		/* postfilter_changes1 */
   440  
   441  		suite.T().Log("About to run line #135: postfilter_changes1")
   442  
   443  		runAndAssert(suite.Suite, expected_, postfilter_changes1, suite.session, r.RunOpts{
   444  			GeometryFormat: "raw",
   445  			GroupFormat:    "map",
   446  		})
   447  		suite.T().Log("Finished running line #135")
   448  	}
   449  
   450  	{
   451  		// changefeeds/edge.yaml line #138
   452  		/* bag(erroredres) */
   453  		var expected_ compare.Expected = compare.UnorderedMatch(erroredres)
   454  		/* postfilter_changes2 */
   455  
   456  		suite.T().Log("About to run line #138: postfilter_changes2")
   457  
   458  		runAndAssert(suite.Suite, expected_, postfilter_changes2, suite.session, r.RunOpts{
   459  			GeometryFormat: "raw",
   460  			GroupFormat:    "map",
   461  		})
   462  		suite.T().Log("Finished running line #138")
   463  	}
   464  }