by::tmock< T > Class Template Reference

Mock object template for testing and verification. More...

#include <tmock.hpp>

Inheritance diagram for by::tmock< T >:

Public Member Functions

 tmock (const T &org)
 
 tmock (const T *org)
 
const ntypegetType () const override
 
scopesubs () override
 
priorType prioritize (const args &a) const override
 
str run (const args &a) override
 
clonableclone () const override
 
const srcgetSrc () const override
 
void * cast (const type &to) override
 
clonablecloneDeep () const override
 
void onCloneDeep (const clonable &from) override
 

Protected Member Functions

void _setSrc (const src &s) override
 

Friends

class exprMaker
 

Detailed Description

template<typename T>
class by::tmock< T >

Mock object template for testing and verification.

Template for creating mock instances that delegate to original ones. Used for testing and verification phases where original instances may not be available.


The documentation for this class was generated from the following files: