Loading files
710fbeaaeThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
710fbeaaeThis file is pinned to the selected release. Download the original to open it in your design tool.
// Run the resource picker tests with --coverage before checking these modules.
import { readFileSync } from 'node:fs'
const expected = new Set([
'lib/models/model_search_catalog.dart',
'lib/widgets/swarm_command_picker.dart',
'lib/widgets/swarm_resource_preview.dart',
])
let total = 0
for (const record of readFileSync(process.argv[2] ?? 'coverage/lcov.info', 'utf8').split('end_of_record')) {
const path = record.match(/SF:(.*)/)?.[1]
const name = [...expected].find(name => path === name || path?.endsWith(`/${name}`))
if (!name) continue
expected.delete(name)
const found = Number(record.match(/LF:(\d+)/)?.[1])
const hit = Number(record.match(/LH:(\d+)/)?.[1])
if (!found || hit !== found) throw new Error(`${name}: ${hit}/${found} lines; expected 100%`)
total += found
}
if (expected.size) throw new Error(`Missing resource picker coverage: ${[...expected].join(', ')}`)
console.log(`Resource picker: ${total}/${total} lines (100%) across three new feature modules.`)