I have a C file contains some static functions, how to use google test to test those static function?
header file:
test.h
int accessData();
source file:
test.c
static int value;
static int getData()
{
return value;
}
int accessData()
{
if(value != 0)
{
return getData();
}
return 0;
}
static function is called by global function, but how to test those static function using google test?