<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mongo.git/src/mongo/dbtests/gle_test.cpp, branch master</title>
<subtitle>github.com: mongodb/mongo.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/'/>
<entry>
<title>SERVER-57459 Make dbtests and unittests getLastError-free</title>
<updated>2021-06-24T20:07:20+00:00</updated>
<author>
<name>Irina Yatsenko</name>
<email>irina.yatsenko@mongodb.com</email>
</author>
<published>2021-06-07T19:07:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=4ebd3bc28ccef7b7e1ad91ce9d3f4338b61a7d0e'/>
<id>4ebd3bc28ccef7b7e1ad91ce9d3f4338b61a7d0e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-43367 unittest framework refactor/fixes</title>
<updated>2019-10-02T00:03:00+00:00</updated>
<author>
<name>Billy Donahue</name>
<email>billy.donahue@mongodb.com</email>
</author>
<published>2019-10-02T00:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=6adefc73b4990253e4f277b49b119db1a05b7490'/>
<id>6adefc73b4990253e4f277b49b119db1a05b7490</id>
<content type='text'>
  - Segregate old-style dbtests into their own Suite initialization
    system: OldStyleSuiteSpecification. This is where the funky
    deprecated features can live on without interfering with the
    Suite API.  It also gives us a searchable base class to identify
    them in the future.

    OldStyleSuite has `setupTests()` and an `add&lt;T&gt;()` that
    Suite does not have.  Suite API can shrink when it doesn't
    have to support these dbtest adaptor features.
    Suite only needs non-template `add(name, callback)`.

  - Add OldStyleSuiteInitializer to some dbtests that were missing it!
    These didn't use SuiteInstance to register themselves and were
    incorrect.  They would self register, resulting in _allSuites()
    holding a std::shared_ptr to a static-duration Suite object!

  - Change `getSuite()` to return `Suite&amp;` instead of `Suite*`.

  - No more "self-registering" in Suite constructor. Registration
    must be done as a separate post-construction step. This removes
    some unusual lifetime management code and is easier to document.
    Suite::getSuite(name) is the only way to make a Suite, and it
    does the make_shared and registration calls with a pseudo-private
    ConstructorEnable idiom.

  - Suite-&gt;run() returns std::unique_ptr&lt;Result&gt; instead of
    raw `Result*`. It's virtual to support OldStyleSuite behavior.

  - Suite._ran does nothing. Removed.

  - Result.cur does nothing. Removed.

  - Switch to pass-by-value and std::move for most ctor args.

  - Add explicit on 1-arg ctors.

  - Get rid of TestHolder. It's just a 2-field struct.

  - use fmt instead of snprintf

  - TEST and TEST_F macros: generate TEST_TYPE once.
  - TEST and TEST_F macros: inline the _agent variable.
  - Mark _doRun as `override`.
  - Terminology: replace CASE_NAME with SUITE_NAME.

  - rename DeathTestImpl -&gt; DeathTestBase
  - move getDeathTestPattern into the test as a static member function

  - refactor out some repetition from the comparator decl macros

  - use if-constexpr and diamond relops to clean up the
    ComparisonAssertion class.

    - dbtests: conditionally skip some add&lt;T&gt; calls

    - further dedup (DEATH_)TEST(_F) macros
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - Segregate old-style dbtests into their own Suite initialization
    system: OldStyleSuiteSpecification. This is where the funky
    deprecated features can live on without interfering with the
    Suite API.  It also gives us a searchable base class to identify
    them in the future.

    OldStyleSuite has `setupTests()` and an `add&lt;T&gt;()` that
    Suite does not have.  Suite API can shrink when it doesn't
    have to support these dbtest adaptor features.
    Suite only needs non-template `add(name, callback)`.

  - Add OldStyleSuiteInitializer to some dbtests that were missing it!
    These didn't use SuiteInstance to register themselves and were
    incorrect.  They would self register, resulting in _allSuites()
    holding a std::shared_ptr to a static-duration Suite object!

  - Change `getSuite()` to return `Suite&amp;` instead of `Suite*`.

  - No more "self-registering" in Suite constructor. Registration
    must be done as a separate post-construction step. This removes
    some unusual lifetime management code and is easier to document.
    Suite::getSuite(name) is the only way to make a Suite, and it
    does the make_shared and registration calls with a pseudo-private
    ConstructorEnable idiom.

  - Suite-&gt;run() returns std::unique_ptr&lt;Result&gt; instead of
    raw `Result*`. It's virtual to support OldStyleSuite behavior.

  - Suite._ran does nothing. Removed.

  - Result.cur does nothing. Removed.

  - Switch to pass-by-value and std::move for most ctor args.

  - Add explicit on 1-arg ctors.

  - Get rid of TestHolder. It's just a 2-field struct.

  - use fmt instead of snprintf

  - TEST and TEST_F macros: generate TEST_TYPE once.
  - TEST and TEST_F macros: inline the _agent variable.
  - Mark _doRun as `override`.
  - Terminology: replace CASE_NAME with SUITE_NAME.

  - rename DeathTestImpl -&gt; DeathTestBase
  - move getDeathTestPattern into the test as a static member function

  - refactor out some repetition from the comparator decl macros

  - use if-constexpr and diamond relops to clean up the
    ComparisonAssertion class.

    - dbtests: conditionally skip some add&lt;T&gt; calls

    - further dedup (DEATH_)TEST(_F) macros
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-19281 Add ns and index fields to DuplicateKey getLastErrorObj</title>
<updated>2019-06-25T21:32:07+00:00</updated>
<author>
<name>Maria van Keulen</name>
<email>maria@mongodb.com</email>
</author>
<published>2019-06-24T20:01:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=2fcd19c930a516653a46c25fa533071ccee1d741'/>
<id>2fcd19c930a516653a46c25fa533071ccee1d741</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-39560 - remove leading blank line on all C++ files</title>
<updated>2019-02-13T20:26:10+00:00</updated>
<author>
<name>Billy Donahue</name>
<email>billy.donahue@mongodb.com</email>
</author>
<published>2019-02-13T19:07:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=b21647a5e19e5980186e57f77be0b1e0ef92a087'/>
<id>b21647a5e19e5980186e57f77be0b1e0ef92a087</id>
<content type='text'>
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-37651 Update header files with new license</title>
<updated>2018-10-22T17:05:34+00:00</updated>
<author>
<name>Ramon Fernandez</name>
<email>ramon@mongodb.com</email>
</author>
<published>2018-10-20T02:27:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=a66a5578d5b006cef85b16eac05c96b58c877ebe'/>
<id>a66a5578d5b006cef85b16eac05c96b58c877ebe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-30580 Eliminate UserException and MsgAssertionException types</title>
<updated>2017-08-16T20:28:02+00:00</updated>
<author>
<name>Mathias Stearn</name>
<email>mathias@10gen.com</email>
</author>
<published>2017-08-10T19:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=347935f7a5d0452146b1a73ad7ef9e249eaf1fb5'/>
<id>347935f7a5d0452146b1a73ad7ef9e249eaf1fb5</id>
<content type='text'>
All users were converted to just use AssertionException.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All users were converted to just use AssertionException.
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-27938 Rename all OperationContext variables to opCtx</title>
<updated>2017-03-07T17:00:08+00:00</updated>
<author>
<name>Maria van Keulen</name>
<email>maria@mongodb.com</email>
</author>
<published>2017-03-07T17:00:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79'/>
<id>589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79</id>
<content type='text'>
This commit is an automated rename of all whole word instances of txn,
_txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all
.cpp and .h files in src/mongo.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit is an automated rename of all whole word instances of txn,
_txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all
.cpp and .h files in src/mongo.
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-27233 fix namespaces to de-dup symbol mongo::myall</title>
<updated>2016-12-01T15:59:16+00:00</updated>
<author>
<name>Matt Cotter</name>
<email>matt.cotter@mongodb.com</email>
</author>
<published>2016-11-30T20:34:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=3995266ca0555040023fdc003e4334cbff856598'/>
<id>3995266ca0555040023fdc003e4334cbff856598</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-23501 include stringified error code in erroring command replies</title>
<updated>2016-08-26T19:14:07+00:00</updated>
<author>
<name>Dorothy Chen</name>
<email>dorothy.chen@mongodb.com</email>
</author>
<published>2016-08-23T19:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=6f03bed78373f186632f8d6f8a2d4fdc3e5177ee'/>
<id>6f03bed78373f186632f8d6f8a2d4fdc3e5177ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SERVER-23779 Replace direct instantiation of OperationContextImpl with cc().makeOperationContext().</title>
<updated>2016-04-20T13:55:59+00:00</updated>
<author>
<name>Andy Schwerin</name>
<email>schwerin@mongodb.com</email>
</author>
<published>2016-04-19T14:30:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mongo.git/commit/?id=74280dd7b600c51f01e28e137a73f61fc0d0a2a2'/>
<id>74280dd7b600c51f01e28e137a73f61fc0d0a2a2</id>
<content type='text'>
Also, make OperationContextImpl's constructor private so that it can only be
constructed via a Client.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, make OperationContextImpl's constructor private so that it can only be
constructed via a Client.
</pre>
</div>
</content>
</entry>
</feed>
