Skip to content

Commit 3eb9ebb

Browse files
committed
[doc] cppnow-2017
1 parent 2056028 commit 3eb9ebb

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

docs/cppnow-2017/index.html

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
* How And When?
6868
* Frameworks
6969
* Mocking
70-
* Writing A Testable Code (Unit Testing)
70+
* Writing A Testable Code
7171
* Single Responsibility Principle
7272
* Dependency Injection
73-
* Automatic Mocks Injection
74-
* Test Driven Development
73+
* Automatic Mocks Injection
74+
* Test Driven Development
7575
* Showcase (User Story -> ... -> Commit)
7676
* C++2X...
7777

@@ -207,8 +207,8 @@
207207

208208
#### <p align="left">GUnit.GTest-Lite (it will be used on the slides)</p>
209209
```cpp
210-
"should add 2 numbers"_test = [] {
211-
EXPECT(4 == add(2, 2));
210+
"should add 2 numbers"_test = [] { // -gnu-string-literal-
211+
EXPECT(4 == add(2, 2)); // -operator-template
212212
};
213213
```
214214

@@ -228,7 +228,7 @@
228228
####good*
229229
* Easy to do to simple things but with possibility to do more complex too
230230
* Limited boilerplate (especially macros)
231-
* Mocking Interfaces/Concepts/Type-Erasure
231+
* Mocking Interfaces/Templates/Concepts/Type-Erasure
232232

233233
----
234234

@@ -427,9 +427,17 @@
427427
| | |
428428
|-|-|
429429
| GoogleMock | https://github.com/google/googletest |
430-
| GUnit.GMock | https://github.com/cpp-testing/GUnit#GMock |
431430
| Dyno (Type-Erasure) | https://github.com/ldionne/dyno |
432-
431+
| GUnit.GMock | https://github.com/cpp-testing/GUnit#GMock |
432+
<!-- .element: style="margin-left:-13%; width:125%" -->
433+
* Features
434+
* No more hand written mocks!
435+
* Support for more than 10 parameters
436+
* Support for std::unique_ptr without any tricks
437+
* Support for overloaded operators
438+
* Support for mocking classes with constructors
439+
* 100% Compatible with Google Mocks
440+
* Quicker compilation times
433441
==============================================================================
434442

435443
### Consider writing `SOLID` instead of `STUPID` code
@@ -759,8 +767,10 @@
759767
any<Loggable> logger; // `virtual Readable` with virtual concepts!
760768

761769
public:
762-
App(any<Readable> reader, any<Printable> printer, any<Loggable> logger)
763-
: reader(reader), printer(printer)
770+
App(any<Readable> reader
771+
, any<Printable> printer
772+
, any<Loggable> logger)
773+
: reader(reader), printer(printer), logger(logger)
764774
{ }
765775

766776
void run() {

0 commit comments

Comments
 (0)