Part 2
3 chapters
Beyond the basics
Parameterized and typed tests, death tests, and testing modern C++20/23 features.
Chapter 6
Parameterized and typed tests
Run one test body over many inputs with TEST_P, and over many types with TYPED_TEST, instead of copying a case and changing one value.
Chapter 7
Death tests, exceptions, and std::expected
Test the failure paths: a recoverable error returned as a std::expected, a contract violation thrown as an exception, and a programming bug that aborts, checked with EXPECT_DEATH.
Chapter 8
Testing modern C++20 and C++23
Test the features that define modern C++: a concept checked at compile time, a lazy ranges pipeline materialized to a value, and a generator coroutine whose yields you collect, including an infinite one made safe by laziness.