Skip to content

Commit

Permalink
chore: name improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Sep 16, 2024
1 parent a7ea8d0 commit 3789acb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/bench/custom/benchmarks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
import { BSON } from '../../../lib/bson.mjs';

const ObjectId_isValid = [
function objectid_isvalid_strlen() {
function objectid_isvalid_wrong_string_length() {
BSON.ObjectId.isValid('a');
},
/** wrong character at the start */
function objectid_isvalid_most_short_circuit_false() {
/** wrong character at the start, could be the most short circuited code path */
function objectid_isvalid_invalid_hex_at_start() {
BSON.ObjectId.isValid('g6e84ebdc96f4c0772f0cbbf');
},
/** wrong character at the end */
function objectid_isvalid_least_short_circuit_false() {
/** wrong character at the end, could be the least short circuited code path */
function objectid_isvalid_invalid_hex_at_end() {
BSON.ObjectId.isValid('66e84ebdc96f4c0772f0cbbg');
},
function objectid_isvalid_true() {
function objectid_isvalid_valid_hex_string() {
BSON.ObjectId.isValid('66e84ebdc96f4c0772f0cbbf');
}
];
Expand Down

0 comments on commit 3789acb

Please sign in to comment.