Skip to content

Corrects spelling in unit tests and examples #1468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/benchmarks/parallel_ldjson_export_child.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(o, callback) {
var totalDocs = 0;

// console.dir({$gte: {_i: skip}, $lte: {_i: end}})
// Peform the query
// Perform the query
collection.find({_i : {$gte: skip, $lte: end}}).each(function(err, doc) {
if(doc == null) return callback();
docs.push(doc);
Expand Down
2 changes: 1 addition & 1 deletion test/functional/collection_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ exports.shouldCorrectlySaveDocumentWithNestedArray = {
/**
* @ignore
*/
exports.shouldPeformCollectionRemoveWithNoCallback = {
exports.shouldPerformCollectionRemoveWithNoCallback = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand Down
6 changes: 3 additions & 3 deletions test/functional/cursorstream_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.shouldStreamDocumentsWithPauseAndResumeForFetching = {
left = left - 1;

if(left == 0) {
// Peform a find to get a cursor
// Perform a find to get a cursor
var stream = collection.find({}).stream();
var data = [];

Expand Down Expand Up @@ -88,7 +88,7 @@ exports.shouldStream10KDocuments = {
left = left - 1;

if(left == 0) {
// Peform a find to get a cursor
// Perform a find to get a cursor
var stream = collection.find({}).stream();
var data = [];

Expand Down Expand Up @@ -138,7 +138,7 @@ exports.shouldTriggerMassiveAmountOfGetMores = {
db.createCollection('test_streaming_function_with_limit_for_fetching_3', function(err, collection) {

collection.insert(docs, {w:1}, function(err, ids) {
// Peform a find to get a cursor
// Perform a find to get a cursor
var stream = collection.find({}).stream();
var data = [];

Expand Down
24 changes: 12 additions & 12 deletions test/functional/find_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports.shouldCorrectlyPerformSimpleFind = {
* Test a simple find chained
* @ignore
*/
exports.shouldCorrectlyPeformSimpleChainedFind = {
exports.shouldCorrectlyPerformSimpleChainedFind = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand Down Expand Up @@ -92,7 +92,7 @@ exports.shouldCorrectlyPeformSimpleChainedFind = {
* Test advanced find
* @ignore
*/
exports.shouldCorrectlyPeformAdvancedFinds = {
exports.shouldCorrectlyPerformAdvancedFinds = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand Down Expand Up @@ -1563,7 +1563,7 @@ exports.shouldReturnInstanceofErrorWithBadFieldSelection = {
/**
* A simple query using find and fields
*/
exports.shouldPeformASimpleLimitSkipFindWithFields = {
exports.shouldPerformASimpleLimitSkipFindWithFields = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand All @@ -1581,14 +1581,14 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
collection.insert([{a:1, b:1}, {a:2, b:2}, {a:3, b:3}], configuration.writeConcernMax(), function(err, result) {
test.equal(null, err);

// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({a:2}, ['b']).toArray(function(err, docs) {
test.equal(null, err);
test.equal(1, docs.length);
test.equal(null, docs[0].a);
test.equal(2, docs[0].b);

// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({a:2}, {b:1}).toArray(function(err, docs) {
test.equal(null, err);
test.equal(1, docs.length);
Expand All @@ -1608,7 +1608,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
/**
* A simple query using find and fields
*/
exports.shouldPeformASimpleLimitSkipFindWithFields2 = {
exports.shouldPerformASimpleLimitSkipFindWithFields2 = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand All @@ -1626,7 +1626,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields2 = {
collection.insert([{a:1, b:1}, {a:2, b:2}, {a:3, b:3}], configuration.writeConcernMax(), function(err, result) {
test.equal(null, err);

// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({a:2}, {fields: ['b']}).toArray(function(err, docs) {
test.equal(null, err);
test.equal(1, docs.length);
Expand Down Expand Up @@ -1668,7 +1668,7 @@ exports.shouldPerformQueryWithBatchSizeDifferentToStandard = {
collection.insert(docs, configuration.writeConcernMax(), function(err, result) {
test.equal(null, err);

// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({}, {batchSize:1000}).toArray(function(err, docs) {
test.equal(null, err);
test.equal(1000, docs.length);
Expand Down Expand Up @@ -1704,7 +1704,7 @@ exports.shouldCorrectlyPerformNegativeLimit = {

// Insert a bunch of documents
collection.insert(docs, configuration.writeConcernMax(), function(err, result) {
// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({}).limit(-10).toArray(function(err, docs) {
test.equal(null, err);
test.equal(10, docs.length);
Expand Down Expand Up @@ -1761,7 +1761,7 @@ exports.shouldCorrectlyExecuteExhaustQuery = {
collection.insert(docs2, configuration.writeConcernMax(), function(err, result) {
test.equal(null, err);

// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({}, {exhaust:true}).toArray(function(err, docs3) {
test.equal(null, err);
test.equal(docs1.length + docs2.length, docs3.length)
Expand Down Expand Up @@ -1800,7 +1800,7 @@ exports['Readpreferences should work fine when using a single server instance']
db.collection('Readpreferencesshouldworkfine', function(err, collection) {
// Insert a bunch of documents
collection.insert(docs, configuration.writeConcernMax(), function(err, result) {
// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({}, {exhaust:true}).toArray(function(err, docs2) {
test.equal(null, err);
test.equal(docs.length, docs2.length)
Expand All @@ -1827,7 +1827,7 @@ exports['Each should not hang on iterating over no results'] = {
test.equal(null, err);
// Create a collection we want to drop later
db.collection('noresultAvailableForEachToIterate', function(err, collection) {
// Peform a simple find and return all the documents
// Perform a simple find and return all the documents
collection.find({}).each(function(err, item) {
test.equal(null, item);

Expand Down
2 changes: 1 addition & 1 deletion test/functional/gridfs_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ exports.shouldCorrectlyExecuteGridStoreExists = {
/**
* @ignore
*/
exports.shouldCorrectlyPeformGridStoreReadLength = {
exports.shouldCorrectlyPerformGridStoreReadLength = {
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },

// The actual test we wish to run
Expand Down
2 changes: 1 addition & 1 deletion test/functional/mapreduce_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ exports.shouldSaveDataToDifferentDbFromMapreduce = {
// Reduce function
var reduce = function(k,vals) { return 1; };

// Peform the map reduce
// Perform the map reduce
collection.mapReduce(map, reduce, {out: {replace : 'tempCollection', db: "outputCollectionDb"}}, function(err, collection) {

// Mapreduce returns the temporary collection with the results
Expand Down
Loading