dextool.plugin.ctestdouble.backend.adapter

Members

Enums

AdapterKind
enum AdapterKind

The kind of constructors the adapters ctor can be. Affects the generated code.

Functions

generateImpl
void generateImpl(CppClass adapter, MutableGlobal[] globals, StubPrefix prefix, CppModule impl, LookupKindT lookup)

Generate an adapter implementation.

generateSingleton
void generateSingleton(CppNamespace in_ns, CppModule impl)

A singleton to allow the adapter to setup "a" connection.

makeAdapter
auto makeAdapter(InterfaceT interface_name)

Make a C++ adapter for an interface.

makeSingleton
CppNamespace makeSingleton(CppNs namespace_name, CppClassName type_name, string instance_name)

make an anonymous namespace containing a ptr to an instance of a test double that implement the interface needed.

Meta

Date

Date: 2015-2017, Joakim Brännström

License

MPL-2, Mozilla Public License 2.0

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)