PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
main.cpp File Reference
#include <iostream>
#include "phoenix_assert.h"
#include "phoenix_getFileSize.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testStringFileSize ()
 Test the whoami function. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 20 of file main.cpp.

20  {
22  return 0;
23 }

References testStringFileSize().

+ Here is the call graph for this function:

◆ testStringFileSize()

void testStringFileSize ( )

Test the whoami function.

Definition at line 13 of file main.cpp.

13  {
14  size_t fileSize(phoenix_getFileSize("Makefile"));
15  phoenix_assert(fileSize != 0lu);
16  phoenix_assert(phoenix_getFileSize("UnexistingFile.txt") == 0lu);
17 }

References phoenix_assert, and phoenix_getFileSize().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
testStringFileSize
void testStringFileSize()
Test the whoami function.
Definition: main.cpp:13
phoenix_getFileSize
size_t phoenix_getFileSize(FILE *fs)
Get the size of the given file in bytes.
Definition: phoenix_getFileSize.cpp:14
phoenix_assert
#define phoenix_assert(isOk)
Definition: phoenix_assert.h:19