GCC Code Coverage Report


Directory: Os/
File: Posix/DefaultFile.cpp
Date: 2026-09-03 21:15:10
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 3 3 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ======================================================================
2 // \title Os/Posix/DefaultFile.cpp
3 // \brief sets default Os::File to posix implementation via linker
4 // ======================================================================
5 #include "Os/Delegate.hpp"
6 #include "Os/Directory.hpp"
7 #include "Os/File.hpp"
8 #include "Os/FileSystem.hpp"
9 #include "Os/Posix/Directory.hpp"
10 #include "Os/Posix/File.hpp"
11 #include "Os/Posix/FileSystem.hpp"
12
13 namespace Os {
14 23 FileInterface* FileInterface::getDelegate(FileHandleStorage& aligned_new_memory, const FileInterface* to_copy) {
15 23 return Os::Delegate::makeDelegate<FileInterface, Os::Posix::File::PosixFile>(aligned_new_memory, to_copy);
16 }
17 3 FileSystemInterface* FileSystemInterface::getDelegate(FileSystemHandleStorage& aligned_new_memory) {
18 3 return Os::Delegate::makeDelegate<FileSystemInterface, Os::Posix::FileSystem::PosixFileSystem>(aligned_new_memory);
19 }
20 9 DirectoryInterface* DirectoryInterface::getDelegate(DirectoryHandleStorage& aligned_new_memory) {
21 9 return Os::Delegate::makeDelegate<DirectoryInterface, Os::Posix::Directory::PosixDirectory>(aligned_new_memory);
22 }
23 } // namespace Os
24