GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/TESTS/TEST_FILESIZE/main.cpp Lines: 8 8 100.0 %
Date: 2024-12-09 15:30:52 Branches: 12 12 100.0 %

Line Branch Exec Source
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
12
///Test the whoami function
13
1
void testStringFileSize(){
14
1
	size_t fileSize(phoenix_getFileSize("Makefile"));
15

1
	phoenix_assert(fileSize != 0lu);
16

1
	phoenix_assert(phoenix_getFileSize("UnexistingFile.txt") == 0lu);
17
1
}
18
19
20
1
int main(int argc, char** argv){
21
1
	testStringFileSize();
22
1
	return 0;
23
}
24
25