PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
main.cpp
Go to the documentation of this file.
1
2
/***************************************
3
Auteur : Pierre Aubert
4
Mail : pierre.aubert@lapp.in2p3.fr
5
Licence : CeCILL-C
6
****************************************/
7
8
#include <iostream>
9
#include <vector>
10
#include "
phoenix_assert.h
"
11
#include "
phoenix_check.h
"
12
13
#include "
string_filename.h
"
14
16
void
testFileBegning
(){
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
}
22
23
int
main
(
int
argc,
char
** argv){
24
testFileBegning
();
25
return
0;
26
}
27
28
testFileBegning
void testFileBegning()
Test the checkFileBegning.
Definition:
main.cpp:16
string_filename.h
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
phoenix_assert.h
main
int main(int argc, char **argv)
Definition:
main.cpp:85
phoenix_check.h
tmp_project
StringUtils
TESTS
TEST_FILE_BEGINING
main.cpp
Generated on Mon Dec 9 2024 15:33:41 for PhoenixMock by
1.8.17