Commit Graph

29 Commits

Author SHA1 Message Date
Keith Bostic
344a714c3d Upgrade copyright notices from 2015 to 2016. 2016-01-01 16:37:39 -05:00
Keith Bostic
5880ee9b58 Python, whitespace cleanup. 2015-08-20 09:11:14 -04:00
Michael Cahill
674170067c Add a __setitem__ to cursors in the Python API, remove lots of boilerplate c.set_key ... c.set_value ... c.insert code. 2015-03-31 14:26:00 +11:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Keith Bostic
5bdf248ffe Fix tests broken by fa40839097,
the error messages have changed, re-write the tests to expect
more general patterns rather than specific error strings.
2013-06-07 13:29:50 -04:00
Keith Bostic
963d37a4e6 Update copyright notice to 2013. 2013-01-01 09:45:50 +00:00
Alex Gorrod
d96d3796ee Update cursor tests to support LSM tables. 2012-08-27 16:15:34 +10:00
Keith Bostic
7a3b1353f0 We're sending a mixed message -- remove the copyright notices from files
where we've placed our content in the public domain.
2012-08-15 17:46:54 +00:00
Keith Bostic
9985779021 Remove most uses of <tabs>, move toward consistent 4-space indentation style. 2012-07-25 20:59:22 +00:00
Don Anderson
0424bd2ab9 Changed most uses of 'with self.expectedStderr(msg)' to use
self.assertRaisesWithMessage(), which is easier to read/understand.
2012-03-15 14:11:58 -04:00
Don Anderson
a8aa1359b0 Modified tests that produce stderr in native code to wrap those calls
so that all error messages can be accounted for.  We either use
self.assertRaisesWithMessage() or wrap the call with self.expectedStderr
or self.expectedStderrPattern
2012-03-15 12:27:28 -04:00
Michael Cahill
b23fd1c0c3 Cleanup test imports, use unittest2 if available so tests pass on Python 2.6. 2012-02-08 13:05:42 +11:00
Michael Cahill
1e5200e0cb Remove the config string from WT_CURSOR::close: it is no longer required and simplifies the code. 2012-02-02 10:56:15 +11:00
Keith Bostic
0175afb277 Free up the test suite, developers may want to copy chunks of it. 2012-02-01 13:18:47 +00:00
Keith Bostic
f96a1248c6 Add the test suit to the copyright check script, update test suite
copyright notices.
2012-02-01 12:53:03 +00:00
Michael Cahill
246589707a Replace WT_CURSOR::first,last} with WT_CURSOR::reset. 2012-01-25 14:24:15 +11:00
Michael Cahill
b424256e1c Configure test cursors with "append" to get back the previous semantics.
Don should review, but this makes test_cursor0[23] pass again.
refs #120
2011-10-20 14:36:35 +11:00
Don Anderson
fbb70c0d00 Various test cleanup: refs #16
- when an expected 'cursor requires key/value to be set' message appear,
  prefix it with 'Expect to see messages:...' -- probably a temporary
  measure until we can get error messages to be attached to exceptions.
- check error returns from all calls to cursor.first() and cursor.last()
- fixed some comments to be accurate
- removed superfluous info message
2011-10-19 10:34:17 -04:00
Don Anderson
87e918467a In TestCursorTracker, support setting a range of sizes for keys/values.
Enable the parts of cursor03 that were disabled for bug tracking.
refs #16

--HG--
extra : rebase_source : 5f09c73bfb9e0796ed1805d9b7f4a0eb82843203
2011-09-20 20:15:45 -04:00
Michael Cahill
793212fe2f Set TRACE_API back to False -- that change should not have been pushed. 2011-09-19 15:34:01 +10:00
Michael Cahill
3ed5380e55 lint warning 534: Ignoring return value of function 2011-09-19 15:01:31 +10:00
Don Anderson
9cb43b2288 Added iterate tests for empty tables and tables with one element.
Fixed error in tracking iteration off the high end of the table.
refs #16

--HG--
extra : rebase_source : 490cec8e3af8516c996bb24e949d3c9bebd6d73d
2011-09-16 11:32:31 -04:00
Don Anderson
6c88da9081 Support up to 2^32 preexisting keys in cursor tracking tests. refs #16
--HG--
extra : rebase_source : 402760863500734ba696f4d8601966081a2ed915
2011-09-16 11:16:12 -04:00
Don Anderson
e31d8e64e6 Close and reopen the connection after initially populating so the
initial set is flushed, and additional inserts appear in skip lists.
This allows us to test more code paths.  refs #16
2011-09-15 21:21:26 -04:00
Don Anderson
2d82d9e90d Fix errors that broke test_cursor02, and added support for column store:
- Added support for recno keys, inserting to the end, marking deleted records
- Fix cur_check_{forward,backward} to not iterate past the end
- Added cur_search and cur_recno_search
- Added TRACE_API define
refs #16
2011-09-15 14:46:48 -04:00
Michael Cahill
0c9c1d263b Some minor test fixes. 2011-09-15 15:13:05 +10:00
Don Anderson
6c8a0f3cbd Added scenarios for row/var/fix, made first cut at cursor tests for these.
- Separated generation of keys and values.
- In cursor02, fleshed out tests
- In CursorTracker, handled 'remove' correctly
refs #16

--HG--
extra : rebase_source : 87ef024d60ef3e56158c5bfeffa1e3fa33526ec4
2011-09-14 16:37:37 -04:00
Don Anderson
953eebd1cf Add TestCursorTracker for building cursor tests with automatic tracking.
refs #16
2011-09-12 14:33:07 -04:00