Automatic backups, patching, replication, and failover. Focus on your app, not your database.
Cloud SQL handles your database ops end to end, so you can focus on your app.
Start Free
$300 Free Credits to Build on Google Cloud
New customers can spin up VMs, build with AI, and query data at no cost.
Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
...I solved this problem by using home made class declaration parser/generator that reads the class declaration (header file), then generates a mock class.
What you need is to run the generator and full featured mock class is there for your unittest.
----
How to use:
You need Ruby. Obtain it if you don't have it yet.
Get Tools
At your convenient directory:
git clone https://git.code.sf.net/p/cpp-tools-in-ruby/code tools
Get Mocker++11
git clone https://git.code.sf.net/p/mockerplusplus11/code mocker++
Run it
Change directory to mocker++
./Mocker++ --help
(On Mac/Unix, you may need to run dos2unix)
Code samples (unittest codes) are found in 'unittest/MockerppTest
...I solved this problem by using home made class definition parser/generator that reads the class definition (header file), then generates a mock class.
What you need is to run the generator and full featured mock class is there for your unittest.
----
How to use:
You need Ruby. Obtain it if you don't have it yet.
Go to
https://sourceforge.net/p/mockerplusplus/code/ci/master/tree/
Download everything except copy-tools.sh (which is for my internal use)
(You can also skip unittest/ if you are not interested)
doc/ folder contains a documentation that explains Mocker++
Code samples (unittest codes) are found in 'unittest/MockerppTest'