listings-Chap14-README.md
Listings of Chap14.docx
This is linked summary of the listings. You can also view it on one page.
- Listing 14.1: Solitary tests test only one component, and helper classes are substituted.
- Book: lst-0001-book.cpp
- Godbolt: lst-0001-godb.cpp, https://godbolt.org/z/a83sf9h8E
- Listing 14.2: Social tests test the interaction of components.
- Book: lst-0002-book.cpp
- Godbolt: lst-0002-godb.cpp, https://godbolt.org/z/fsroE4seh
- GodboltId:sTaoeqfxr
- Book: lst-0003-book.cpp
- Godbolt: lst-0003-godb.cpp, https://godbolt.org/z/sTaoeqfxr
- GodboltId:rn5oK3M6e
- Book: lst-0004-book.cpp
- Godbolt: lst-0004-godb.cpp, https://godbolt.org/z/rn5oK3M6e
- Listing 14.3: In the “fib.cpp” file, there is a free function that you want to test.
- Book: lst-0005-book.cpp
- Godbolt: lst-0005-godb.cpp, https://godbolt.org/z/Ex6Mv6xcz
- GodboltId:erPdKo1qh
- Book: lst-0006-book.cpp
- Godbolt: lst-0006-godb.cpp, https://godbolt.org/z/erPdKo1qh
- Listing 14.4: The main header file of the qwort.hpp library.
- Book: lst-0012-book.cpp
- Godbolt: lst-0012-godb.cpp, https://godbolt.org/z/j93cYaWd4
- Listing 14.5: Public interface for testing only.
- Book: lst-0013-book.cpp
- Listing 14.6: This test module tests qwort.cpp.
- Book: lst-0014-book.cpp
- Godbolt: lst-0014-godb.cpp, https://godbolt.org/z/TacMfah8E
- Listing 14.7: The test suite is manually assembled here.
- Book: lst-0024-book.cpp
- Godbolt: lst-0024-godb.cpp, https://godbolt.org/z/r9sdhaazz
- Listing 14.8: A test function with a parameter can be called with test data.
- Book: lst-0029-book.cpp
- Godbolt: lst-0029-godb.cpp, https://godbolt.org/z/5GondGsMz