Главная
Study mode:
on
1
Intro
2
Marking
3
Mark Objects
4
Manual Approach
5
Virtual Functions
6
Advantages
7
Alternatives
8
Unit Tests
9
Marking Framework
10
Limitations
11
My malloc is not your malloc
12
Test code
13
Throwing destructor
14
Virtual inheritance
15
Callback reporting
16
Reify function
17
Update lambda
18
Explicit lambda
19
Feedback framework
Description:
Explore mocking techniques in C++ for efficient unit testing in this conference talk from C++Now 2017. Learn how to create mock components that simulate desired behaviors without relying on actual dependencies, improving test reliability and speed. Discover methods to implement mocking in C++ without extensive use of macros, manual labor, or code duplication, challenging the notion that C++ lacks the necessary capabilities. Gain insights into advanced topics such as virtual functions, marking frameworks, and handling complex scenarios like throwing destructors and virtual inheritance. Understand the advantages and limitations of mocking in C++, and how to effectively apply these techniques to enhance your unit testing practices.

Mocking C++

CppNow
Add to list
0:00 / 0:00