Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-endpoints-readers FR-009
Reading files for the readers: a file given by name must be one a reader reads; a folder is walked and a file in it that no reader reads is skipped without a word (a folder holds much besides endpoints), except the folders of tools. A PEM with certificates is read here, with the cryptography of the runtime: the subject, the names, the issuer, the day it ends and the key. After all files are read, each endpoint that speaks over TLS is linked to the certificate that covers its name, and where two files give one identity the first is kept.
import { importPaths } from "./files.ts" ;
// await importPaths(["api/openapi.yaml", "mobile/AndroidManifest.xml"]) // { assets, links, problems, files } Source: commons/estate-endpoints/src/physical/files.ts
2 of 6 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
physical.ImportedPathstype no test imports it type ImportedPaths = { readonly assets : readonly Imported []; readonly links : readonly ImportedLink []; readonly problems : readonly string []; readonly files : readonly { readonly source : string ; readonly format : Format ; readonly assets : number }[] };What reading several paths gave.
physical.certificatesOffunction no test imports it function certificatesOf (pem : string ): readonly CertFacts []The certificates of a PEM text, as facts.
physical.importPathsfunction no test imports it function importPaths (paths : readonly string [], options ?: ReadOptions ): Promise <ImportedPaths >The assets and links of the files and folders at the paths.
ImportedPathstype no test imports it type ImportedPaths = { readonly assets : readonly Imported []; readonly links : readonly ImportedLink []; readonly problems : readonly string []; readonly files : readonly { readonly source : string ; readonly format : Format ; readonly assets : number }[] };What reading several paths gave.
function certificatesOf (pem : string ): readonly CertFacts []The certificates of a PEM text, as facts.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results
function importPaths (paths : readonly string [], options ?: ReadOptions ): Promise <ImportedPaths >The assets and links of the files and folders at the paths.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results