| 69 | }; |
| 70 | |
| 71 | int main() { |
| 72 | /*<<make injector configuration>>*/ |
| 73 | auto injector = di::make_injector(configuration()); |
| 74 | assert(0 == implementation::ctor_calls()); |
| 75 | |
| 76 | /*<<eagerly initialize singletons>>*/ |
| 77 | eager_singletons(injector); |
| 78 | assert(1 == implementation::ctor_calls()); |
| 79 | |
| 80 | /*<<create `example` with already initialized singletons>>*/ |
| 81 | injector.create<example>(); |
| 82 | assert(1 == implementation::ctor_calls()); |
| 83 | } |
nothing calls this directly
no test coverage detected