CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
subunit.js45 linesDownload Raw Back to languages
1/*2Language: SubUnit3Author: Sergey Bronnikov <sergeyb@bronevichok.ru>4Website: https://pypi.org/project/python-subunit/5Category: protocols6*/7 8function subunit(hljs) {9  const DETAILS = {10    className: 'string',11    begin: '\\[\n(multipart)?',12    end: '\\]\n'13  };14  const TIME = {15    className: 'string',16    begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z'17  };18  const PROGRESSVALUE = {19    className: 'string',20    begin: '(\\+|-)\\d+'21  };22  const KEYWORDS = {23    className: 'keyword',24    relevance: 10,25    variants: [26      { begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?' },27      { begin: '^progress(:?)(\\s+)?(pop|push)?' },28      { begin: '^tags:' },29      { begin: '^time:' }30    ]31  };32  return {33    name: 'SubUnit',34    case_insensitive: true,35    contains: [36      DETAILS,37      TIME,38      PROGRESSVALUE,39      KEYWORDS40    ]41  };42}43 44export { subunit as default };45 
basant307/AI_Governance_Project · CoolFace