int main() { test_get_last_error_commands(); test_insert_limits(); test_namespace_validation(); test_namespace_validation_on_insert(); return 0; }
int main() { ASSERT( test_connect( "replica-set-foo" ) == MONGO_OK ); ASSERT( test_connect( "test-foobar" ) == MONGO_CONN_BAD_SET_NAME ); ASSERT( test_insert_limits( "replica-set-foo" ) == MONGO_OK ); /* ASSERT( test_reconnect( "test-rs" ) == 0 ); */ return 0; }
int main() { ASSERT( test_connect_deprecated( REPLICA_SET_NAME ) == MONGO_OK ); ASSERT( test_connect( REPLICA_SET_NAME ) == MONGO_OK ); ASSERT( test_connect( "test-foobar" ) == MONGO_CONN_BAD_SET_NAME ); ASSERT( test_insert_limits( REPLICA_SET_NAME ) == MONGO_OK ); /* ASSERT( test_reconnect( "test-rs" ) == 0 ); */ return 0; }