How to use Google Test in C

I want to use Google Test even in C language

GoogleTest GoogleTest is a unit testing framework for C ++ developed by Google. Just naming it Google makes me feel good, but It seems easy to use even if you look at the people who are actually using it.

Download from here: http://code.google.com/p/googletest/


Can it be used in C language?

I was disappointed when dealing with C language projects, as I was wondering if it could be used in C language because it was for C ++. Apparently that's not the case.

I tried to hack how to use Google Test in C

The test function is created with cpp and C header file

extern”C”{}

It seems that you only have to surround it with.

I haven't put it into practice yet, but I'll give it a try.

Recommended Posts

How to use Google Test in C
How to use the C library in Python
How to use Google Colaboratory
How to install Google Test / Google Mock in Visual Studio 2019
How to use Spacy Japanese model in Google Colaboratory
How to use classes in Theano
How to use SQLite in Python
[Memo] How to use Google MµG
How to use Mysql in python
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
How to create and use static / dynamic libraries in C
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to use Google Assistant on Windows 10
How to use Anaconda interpreter in PyCharm
How to use __slots__ in Python class
How to use regular expressions in Python
How to use Map in Android ViewPager
How to use is and == in Python
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use Seaboan
How to use image-match
How to use shogun
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to use list []
How to use python-kabusapi
How to use OptParse
How to use return
How to use dotenv
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
How to generate permutations in Python and C ++
How to use Python Image Library in python3 series
How to multi-process exclusive control in C language
Summary of how to use MNIST in Python
How to use the Google Cloud Translation API
How to use tkinter with python in pyenv
How to display videos inline in Google Colab