From 23d44794c85305307b833e2f90ddb96ac8f97199 Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Sun, 19 Apr 2026 14:20:01 -0400 Subject: [PATCH] bench: refactor to use string interpolation in `@stdlib/boolean` --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/boolean/ctor/benchmark/benchmark.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/boolean/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/boolean/ctor/benchmark/benchmark.js index 569b7fb885fd..2cb080548ba3 100644 --- a/lib/node_modules/@stdlib/boolean/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/boolean/ctor/benchmark/benchmark.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Bool = require( './../lib' ); // MAIN // -bench( pkg+'::constructor', function benchmark( b ) { +bench( format( '%s::constructor', pkg ), function benchmark( b ) { var values; var o; var i; @@ -58,7 +59,7 @@ bench( pkg+'::constructor', function benchmark( b ) { b.end(); }); -bench( pkg+'::function', function benchmark( b ) { +bench( format( '%s::function', pkg ), function benchmark( b ) { var values; var bool; var o;