MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / getExportPropertyName

Function getExportPropertyName

unit-test/listOfTestModules.js:28–33  ·  view source on GitHub ↗

* @param fileName - expect to be in snake case , eg: this_is_a_test_file.cc * @returns property name of exported init function

(fileName)

Source from the content-addressed store, hash-verified

26 * @returns property name of exported init function
27 */
28function getExportPropertyName (fileName) {
29 if (exceptions.propertyNames[fileName.toLowerCase()]) {
30 return exceptions.propertyNames[fileName.toLowerCase()];
31 }
32 return fileName;
33}
34
35/**
36 * creates a configuration list for all available test modules

Callers 1

listOfTestModulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected