MCPcopy Create free account
hub / github.com/brianc/node-postgres / testEscapeIdentifier

Function testEscapeIdentifier

packages/pg/test/unit/utils-tests.js:279–284  ·  view source on GitHub ↗
(testName, input, expected)

Source from the content-addressed store, hash-verified

277)
278
279const testEscapeIdentifier = function (testName, input, expected) {
280 test(testName, function () {
281 const actual = utils.escapeIdentifier(input)
282 assert.equal(expected, actual)
283 })
284}
285
286testEscapeIdentifier('escapeIdentifier: no special characters', 'hello world', '"hello world"')
287

Callers 1

utils-tests.jsFile · 0.85

Calls 2

testFunction · 0.85
escapeIdentifierMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…