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

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testFileBegning ()
 Test the checkFileBegning. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 23 of file main.cpp.

23  {
25  return 0;
26 }

References testFileBegning().

+ Here is the call graph for this function:

◆ testFileBegning()

void testFileBegning ( )

Test the checkFileBegning.

Definition at line 16 of file main.cpp.

16  {
17  phoenix_assert(checkFileBegning("", "") == false);
18  phoenix_assert(checkFileBegning("UnexistingFile", "") == false);
19  phoenix_assert(checkFileBegning("Makefile", "# Not the match") == false);
20  phoenix_assert(checkFileBegning("Makefile", "# CMAKE generated file: DO NOT EDIT!") == true);
21 }

References checkFileBegning(), and phoenix_assert.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
testFileBegning
void testFileBegning()
Test the checkFileBegning.
Definition: main.cpp:16
checkFileBegning
bool checkFileBegning(const std::string &fileName, const std::string &expectedBegining)
Check if the given file starts with the given begning.
Definition: string_filename.cpp:212
phoenix_assert
#define phoenix_assert(isOk)
Definition: phoenix_assert.h:19