(node)
| 83 | return value.status === 'not_applicable' && ['File is absent in this revision', 'Subject is not present in this revision'].includes(value.reason); |
| 84 | } |
| 85 | function changeText(node) { |
| 86 | if (viewSnapshot) return 'Snapshot value; no comparison'; |
| 87 | const observation = node.properties.observation; |
| 88 | if (typeof node.properties.delta === 'number') return (node.properties.delta > 0 ? '+' : '') + node.properties.delta; |
| 89 | if (isAbsent(observation.before) && observation.after.status === 'measured') return 'New subject'; |
| 90 | if (isAbsent(observation.after) && observation.before.status === 'measured') return 'Removed subject'; |
| 91 | return 'Not comparable'; |
| 92 | } |
| 93 | function changed(node) { |
| 94 | if (!node) return false; |
| 95 | const value = node.properties.observation; |
no test coverage detected