IF Commons GitHub

governance/names

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0005-naming FR-001, 0005-naming FR-002

Names (commons data 0005-naming): a name in governance is a TypeScript identifier, lower camel case, and says nothing of a database. It crosses the layers as a list of words, which words makes and nothing else does: the logical schema chooses the words of each element of a relational schema, and the physical schema writes them in the case style of its target.

words("givenName");   // ["given", "name"]
words("line1");       // ["line", "1"]
words("HTTPServer");  // ["http", "server"]

Source: commons/data/governance/names.ts

2 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

Wordstypeno test imports it
type Words = readonly string[];

The words of a name, lower case, in order.

NAMEconst
const NAME: RegExp

A name of governance: lower camel case, a letter first and then letters and digits.

Imported by 19 tests of the run (19 passed, 0 failed): the library's results

wordsfunction
function words(name: string): Words

The lower-case words of a name: split where lower case turns upper, around digits, and at the end of a run of capitals.

ParameterWhat it is
namea name of governance

Returns: its words, lower case, in order; one word at least for a valid name

Imported by 19 tests of the run (19 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.