Table-driven tests
A table-driven test stores multiple test cases as data and runs the same test logic for each case. This reduces repeated code and makes it easier to cover normal, boundary, and invalid inputs consistently.
A table-driven test stores multiple test cases as data and runs the same test logic for each case. This reduces repeated code and makes it easier to cover normal, boundary, and invalid inputs consistently.