gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchf2-api-bugs26117255|||PR apps API: review comments on files with spaces in their namemref2-api-bugs/tests/cleanup-logic.mjs

1.5 KB

  1. // W60 architectural controls: the browser walks separately establish unchanged behavior.
  2. // Negative control: git 452f6a1 (the mission's starting tree).
  3. import { readFileSync, readdirSync } from 'node:fs';
  4. import { resolve } from 'node:path';
  5. const root = resolve(process.argv[2] || '.');
  6. const read = p => readFileSync(root + '/' + p, 'utf8');
  7. let passed = 0, failed = 0;
  8. function check(name, ok) { console.log(`${ok ? 'ok' : 'FAIL'} ${name}`); ok ? passed++ : failed++; }
  9. const files = readdirSync(root + '/components').filter(f => f.endsWith('.hl'));
  10. check('#28: every component stores control values in members', files.every(f => !/target\.elements|\.value\s*=/.test(read('components/' + f))));
  11. const main = read('components/main.hl');
  12. check('#32: shared character helpers and env lookup', /static isBase64/.test(read('lib/util.hl')) && /static isDigits/.test(read('lib/util.hl')) && !/static isKeyBase64/.test(read('lib/sshkeys.hl')) && !/static isDigits/.test(read('lib/git-helpers.hl')) && /envOr\('GITORIA_GIT'/.test(read('lib/git.hl')));
  13. check('#33: both login carriers call the users topic', /x = login\(code, session, null\)/.test(main) && /x = login\(code, req.session, &sessions\)/.test(read('lib/api.hl')) && !/session\.user = \{ id = x\.user\.id/.test(main));
  14. check('#33: tickets connect state belongs to its topic', /static completeConnect/.test(read('lib/tickets.hl')) && !/data\.connectState\s*=|data\.connectNote\s*=/.test(read('lib/api.hl')));
  15. console.log(`${passed} passed, ${failed} failed`);
  16. process.exitCode = failed ? 1 : 0;

Branches

Latest commits

  • 26117255|||PR apps API: review comments on files with spaces in their namemre
  • b8796cecMerge branch 'f1-broken-json' into mainGitoria
  • 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
  • f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
  • 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
  • 16a3530fMerge branch 'heap-revert' into mainGitoria
  • 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
  • 13f0c342Merge branch 'hl25-records' into mainGitoria
  • a002ecb7|||PR records: HL25 report, heap helper, logmre
  • 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
  • fefaedd2log: tracker PR-only, HL25 startedmre
  • 21aa57calog: parkmre
  • e9f950a8reports: G25c soakmre
  • a7783686log: deploy 9f41ffcmre
  • 9f41ffc1log: W30b mergedmre
  • bef635c1Merge branch 'w30b'mre
  • 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
  • c4f6d9e3reports: G25c growth huntmre
  • b88e39f1log: privacy cleanup donemre
  • bfd7826ddocs: neutral example organisation namemre