jstests/core/wildcard_index_collation.js
// Confirms that the index matching the given keyPattern has the specified collation.
Confirms that the index matching the given keyPattern has the specified collation.
Confirms that the index matching the given keyPattern has the specified collation .
function assertIndexHasCollation(keyPattern, collation) {
    var indexSpecs = coll.getIndexes();
    var found = IndexCatalogHelpers.findByKeyPattern(indexSpecs, keyPattern, collation);
    assert.neq(null,
               found,
               "Index with key pattern " + tojson(keyPattern) + " and collation " +
                   tojson(collation) + " not found: " + tojson(indexSpecs));
}
function assertIndexHasCollation ( keyPattern , collation ) { var indexSpecs = coll . getIndexes ( ) ; var found = IndexCatalogHelpers . findByKeyPattern ( indexSpecs , keyPattern , collation ) ; assert . neq ( null , found , "Index with key pattern " + tojson ( keyPattern ) + " and collation " + tojson ( collation ) + " not found: " + tojson ( indexSpecs ) ) ; }
Confirms that the index matching the given keyPattern has the specified collation.
Confirms that the index matching the given keyPattern has the specified collation .