| 701 | std::string strGen; |
| 702 | |
| 703 | BOOST_FOREACH(TestBuilder& test, tests) { |
| 704 | test.Test(); |
| 705 | std::string str = JSONPrettyPrint(test.GetJSON()); |
| 706 | #ifndef UPDATE_JSON_TESTS |
| 707 | if (tests_set.count(str) == 0) { |
| 708 | BOOST_CHECK_MESSAGE(false, "Missing auto script_valid test: " + test.GetComment()); |
| 709 | } |
| 710 | #endif |
| 711 | strGen += str + ",\n"; |
| 712 | } |
| 713 | |
| 714 | #ifdef UPDATE_JSON_TESTS |
| 715 | FILE* file = fopen("script_tests.json.gen", "w"); |
nothing calls this directly
no test coverage detected