coolxv / cpp-stub

C++ unit test stub(not mock) and awesome.Surpported ISA x86,x86-64,arm64,arm32,arm thumb,mips64,riscv,loongarch64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template class's private method stub

leeqx opened this issue · comments

here is an eg:

template<typename X, typename Y>
class Foo {
void foo(X x,Y y) {}
};

how to stub for foo(X x,Y y) method?

-fno-access-control //compilation option
template class A<int, double>; //Explicit instantiation

or use addr_any.h

addr_pri.h not work.