* function to execute the required_red tests */
| 1729 | * function to execute the required_red tests |
| 1730 | */ |
| 1731 | static void run_tests(struct tests *test_type, uint32_t test_count, uint32_t *num_tests, uint32_t *num_pass) |
| 1732 | { |
| 1733 | enum test_result result = PASS; |
| 1734 | uint32_t i = 0; |
| 1735 | |
| 1736 | for (i = 0; i < test_count; i++) { |
| 1737 | printf("\n--------------------------------------------------------------------------------\n"); |
| 1738 | result = test_type[i].testfn(test_type[i].testcfg); |
| 1739 | (*num_tests)++; |
| 1740 | if (result == PASS) { |
| 1741 | (*num_pass)++; |
| 1742 | printf("-------------------------------------<pass>-------------------------------------\n"); |
| 1743 | } else { |
| 1744 | printf("-------------------------------------<fail>-------------------------------------\n"); |
| 1745 | } |
| 1746 | } |
| 1747 | return; |
| 1748 | } |
| 1749 | |
| 1750 | /** |
| 1751 | * check if functions accept invalid parameters |
no test coverage detected