IF Commons GitHub

capabilities

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-githost FR-002

What each kind of Git host offers (commons 0001-githost FR-002): the table of ifccm:GitManagerKind and its ifccm:supports, as the pure types the adapters and the workspace read, and the typed answer for a capability a kind lacks. A test holds this table equal to the ontology's.

Source: commons/githost/src/capabilities.ts

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

CAPABILITIESconst
const CAPABILITIES: Readonly<Record<HostKind, ReadonlySet<Capability>>>

The capabilities of each kind: GitHub the common four and the three a host adds, GitLab those and groups to any depth, plain Git the common four alone.

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

COMMON_CAPABILITIESconst
const COMMON_CAPABILITIES: readonly Capability[]

The four capabilities every kind offers (ifccm:CloneUrl, ifccm:Credentials, ifccm:DefaultBranch, ifccm:SignedCommits).

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

maxDepthfunction
function maxDepth(kind: HostKind): number

The most path segments (owner or groups, then repository) a kind of host takes: 2 where it has no nested groups, unlimited where it has.

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

supportsfunction
function supports(kind: HostKind, capability: Capability): boolean

Whether a kind of host offers a capability.

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

unsupportedfunction
function unsupported(host: HostKind, capability: Capability): Result<never, HostFailure>

The answer for a capability that a kind of host does not offer: typed, naming the host and the capability, never a guess (0001-githost FR-003).

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

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