MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / describeValue

Function describeValue

libatomic/src/review/viewer.js:78–81  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

76 const changes = new Map(report.changes.map(change => [change.hash, change]));
77
78 function describeValue(value) {
79 if (value.status === 'measured') return shown(value.value);
80 return value.status === 'not_applicable' ? 'N/A' : 'Unavailable';
81 }
82 function isAbsent(value) {
83 return value.status === 'not_applicable' && ['File is absent in this revision', 'Subject is not present in this revision'].includes(value.reason);
84 }

Callers 2

valueFunction · 0.85
metricTableFunction · 0.85

Calls 1

shownFunction · 0.85

Tested by

no test coverage detected