src/mongo/client/embedded/libmongodbcapi_test.cpp
// This test is temporary to make sure that only one database can be created
// This restriction may be relaxed at a later time
This test is temporary to make sure that only one database can be created
This restriction may be relaxed at a later time
This test is temporary to make sure that only one database can be created This restriction may be relaxed at a later time
TEST_F(MongodbCAPITest, CreateMultipleDBs) {
    libmongodbcapi_db* db2 = libmongodbcapi_db_new(0, nullptr, nullptr);
    ASSERT(db2 == nullptr);
    ASSERT_EQUALS(libmongodbcapi_get_last_error(), LIBMONGODB_CAPI_ERROR_UNKNOWN);
}
TEST_F ( MongodbCAPITest , CreateMultipleDBs ) { libmongodbcapi_db * db2 = libmongodbcapi_db_new ( 0 , nullptr , nullptr ) ; ASSERT ( db2 == nullptr ) ; ASSERT_EQUALS ( libmongodbcapi_get_last_error ( ) , LIBMONGODB_CAPI_ERROR_UNKNOWN ) ; }
This test is temporary to make sure that only one database can be created
This restriction may be relaxed at a later time
This test is temporary to make sure that only one database can be created This restriction may be relaxed at a later time