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

20
LINES

< > BotCompany Repo | #1008971 // addTestResult - add TestResult object to list per thread

JavaX fragment (include)

please include function getTestResults.

static void addTestResult(TestResult r) {
  if (getTestResults_list! == null)
    getTestResults_list.set(new L);
  getTestResults_list->add(r);
}

static void addTestResult(String desc, bool ok) {
  addTestResult(new TestResult(desc, ok));
}

static void addTestResult(String desc, double okPercentage) {
  addTestResult(new TestResult(desc, okPercentage));
}

static void addTestResult(String desc, Throwable e) {
  printStackTrace(e);
  addTestResult(new TestResult(desc, e));
}

Author comment

Began life as a copy of #1008970

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008971
Snippet name: addTestResult - add TestResult object to list per thread
Eternal ID of this version: #1008971/5
Text MD5: ffa7a4d5fd88b0be4c684d6c21649531
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-02-07 16:04:03
Source code size: 541 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 571
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009079 - addTestResultVerbose - add TestResult object to list per thread