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 "
phoenix_assert.h
"
10
#include "
phoenix_getFileSize.h
"
11
13
void
testStringFileSize
(){
14
size_t
fileSize(
phoenix_getFileSize
(
"Makefile"
));
15
phoenix_assert
(fileSize != 0lu);
16
phoenix_assert
(
phoenix_getFileSize
(
"UnexistingFile.txt"
) == 0lu);
17
}
18
19
20
int
main
(
int
argc,
char
** argv){
21
testStringFileSize
();
22
return
0;
23
}
24
25
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
phoenix_getFileSize.h
phoenix_assert.h
main
int main(int argc, char **argv)
Definition:
main.cpp:85
tmp_project
StringUtils
TESTS
TEST_FILESIZE
main.cpp
Generated on Mon Dec 9 2024 15:33:41 for PhoenixMock by
1.8.17