I am using gtest for my tests and i am discovering value-parameterized tests. I understand the google example with
int tab[] = {1, 2, 3};
INSTANTIATE_TEST_CASE_P(MyTestName, MyTest, ::testingCombine(Bool(), ::testing::ValuesIn(tab)));
It is testing all combinations of 'true' with {1, 2, 3} and 'false' with {1,2,3}.
- If i want to fix the Boolean to 'false', how do i do ?
- And i want to test several combinations like (true, ::testing::ValuesIn(tab)), (true, ::testing::ValuesIn(tab2)) , (false, ::testing::ValuesIn(tab3)) ?
Well, i am lost.