Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1021776 // gazelle_performMultipleTests

JavaX fragment (include)

1  
static ErrorCounter gazelle_performMultipleTests(S data, O... _) {
2  
  new ErrorCounter errorCounter;
3  
  SS tests = equalsSignsSections(data);
4  
  S performOnly = stringPar performOnly(_);
5  
  for (S name, test : tests) {
6  
    continue if startsWith(name, "DISABLED");
7  
    if (nempty(performOnly) && !eqic(trim(tok_dropStuffInRoundBrackets(name)), trim(performOnly))) continue;
8  
    printAsciiHeading(upper(name));
9  
    pcallF(optPar testStarting(_), name, test);
10  
    new ErrorCounter ec2;
11  
    gazelle_fakery_performTest(test, paramsPlus(_, errorCounter := ec2));
12  
    pcallF(optPar testDone(_), name, ec2);
13  
    errorCounter.add(ec2);
14  
  }
15  
  ret errorCounter;
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021776
Snippet name: gazelle_performMultipleTests
Eternal ID of this version: #1021776/10
Text MD5: beba2031df8f83eb48d8272cb2227da9
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-29 18:08:28
Source code size: 664 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 286 / 342
Version history: 9 change(s)
Referenced in: [show references]