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_whoami.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 18 of file main.cpp.

18  {
20  return 0;
21 }

References testStringWhoAmI().

+ Here is the call graph for this function:

◆ testStringWhoAmI()

void testStringWhoAmI ( )

Test the whoami function.

Definition at line 13 of file main.cpp.

13  {
14  std::string name(phoenix_whoami());
15  phoenix_assert(name != "");
16 }

References phoenix_assert, and phoenix_whoami().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
testStringWhoAmI
void testStringWhoAmI()
Test the whoami function.
Definition: main.cpp:13
phoenix_whoami
std::string phoenix_whoami()
Get the name of the current user.
Definition: phoenix_whoami.cpp:13
phoenix_assert
#define phoenix_assert(isOk)
Definition: phoenix_assert.h:19