From 3789acb891a823369ce96df1a704a1d50be6b0b8 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Mon, 16 Sep 2024 16:16:18 -0400 Subject: [PATCH] chore: name improvements --- test/bench/custom/benchmarks.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/bench/custom/benchmarks.mjs b/test/bench/custom/benchmarks.mjs index 3ba16015..74170fb9 100644 --- a/test/bench/custom/benchmarks.mjs +++ b/test/bench/custom/benchmarks.mjs @@ -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'); } ];