add test code refs #126#291
Conversation
|
Hello, @somu15 , I deleted the banned keywords and pulled this new request, but it still fails. Would you like to show me the error messages at this time? Thank you. |
|
@somu15 , I tested this code in my PC, it works, why I still get the errors when I pull a request? Thank you. |
|
Please see the messages below. Are you referencing the right issue in your commits? ERROR: Your patch does not contain a valid ticket reference! (i.e. #1234) ERROR: The following files contain banned keywords (std::cout, std::cerr, sleep, print_trace): |
|
Also, if you'd like to know where your tests are failing, click on the failed check and login to CIVET using github (top). |
|
@HugoNip thanks for this hard work. A few comments.
|
|
@cbolisetti Hi, Chandu, thank you for your reply. As you say, I do use the banned keywords in comments because these parts are the printing related functions that are in the original c++ code. I think that's why the PR failed. I will remove them and try it later. Thank you very much. |
| @@ -0,0 +1,8 @@ | |||
| { | |||
There was a problem hiding this comment.
Please remove this json file.
| #include "FaultTreeUtils.h" | ||
| #include "MastodonUtils.h" | ||
|
|
||
| #define CLIP(A, MIN, MAX) (((A) < MIN) ? MIN : ((A) > MAX ? MAX : (A))) |
There was a problem hiding this comment.
please make this a method.
|
|
||
| #define CLIP(A, MIN, MAX) (((A) < MIN) ? MIN : ((A) > MAX ? MAX : (A))) | ||
|
|
||
| #define GEN_QUALIFICATION_R_VEC(gen, d, n, rv) \ |
There was a problem hiding this comment.
Please make this a method as well.
| p_max = (p_max > (vec.size() - 1)) ? vec.size() : p_max; | ||
| return vec[p_min - 1] + ((p_i - p_min) * (vec[p_max - 1] - vec[p_min - 1])); | ||
| } | ||
| /* |
There was a problem hiding this comment.
this commented section is failing the PR because of the cout.
| {"NORM", NORM}, | ||
| {"LNORM", LNORM}, | ||
| {"PE", PE}, | ||
| /*{"CHI_SQ" , CHI_SQ },*/ |
There was a problem hiding this comment.
please remove comments
| FTAUtils::FaultTree::getRoot() | ||
| /*!endpublic*/ { return _root; } | ||
|
|
||
| /*!public*/ |
There was a problem hiding this comment.
Please remove all the commented sections, eventually.
2. remove Utils.h 3. make macro #define a method 4. remove all commented sections 5. remove banned keywords
1. make macro #define a method 2. remove all commented sections 3. remove banned keywords
1. make macro #define a method 2. remove all commented sections 3. remove banned keywords
|
@HugoNip please follow the directions in the above comment and that will make style changes automatically. You should then push that commit. |
|
Job Precheck on 128b3d0 wanted to post the following: Your code requires style changes. A patch was auto generated and copied here
Alternatively, with your repository up to date and in the top level of your repository:
|
test QuantificationUtils.C, FaultTreeUtils.C