• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 25918451630

15 May 2026 12:43PM UTC coverage: 60.929% (+2.1%) from 58.859%
25918451630

push

github

turleypol
added dynamic property which returns a pointer of the object instead of
a copy like the current imp.
needed to be able to eg store a vector

43 of 61 new or added lines in 2 files covered. (70.49%)

14455 existing lines in 345 files now uncovered.

44695 of 73356 relevant lines covered (60.93%)

449621.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/pol-core/clib/Program/ProgramConfig.cpp
1
#include "ProgramConfig.h"
2
#include "pol_global_config.h"
3
#include "pol_revision.h"
4
#include <string>
5

6

7
namespace Pol::Clib
8
{
9
using namespace std;
10

11
///////////////////////////////////////////////////////////////////////////////
12

13
std::string ProgramConfig::m_programName = "";
14
std::string ProgramConfig::m_programDir = "";
15

16
///////////////////////////////////////////////////////////////////////////////
17

18
void ProgramConfig::configureProgramEnvironment( const std::string& programName )
4,959✔
19
{
20
  m_programName = programName;
4,959✔
21

22
  std::string exeDir = programName;
4,959✔
23
  std::string::size_type bslashpos;
24
  while ( std::string::npos != ( bslashpos = exeDir.find( '\\' ) ) )
4,959✔
25
  {
UNCOV
26
    exeDir.replace( bslashpos, 1, 1, '/' );
×
27
  }
28

29
  std::string::size_type pos = exeDir.find_last_of( '/' );
4,959✔
30
  if ( pos != std::string::npos )
4,959✔
31
  {
32
    exeDir.erase( pos );
4,959✔
33
    exeDir += "/";
4,959✔
34
  }
35

36
  pos = exeDir.rfind( "/./" );
4,959✔
37
  if ( pos != std::string::npos )
4,959✔
38
  {
UNCOV
39
    exeDir.erase( pos, 2 );
×
40
  }
41

42
  m_programDir = exeDir;
4,959✔
43
}
4,959✔
44

UNCOV
45
std::string ProgramConfig::programName()
×
46
{
UNCOV
47
  return m_programName;
×
48
}
49

50
std::string ProgramConfig::programDir()
2✔
51
{
52
  return m_programDir;
2✔
53
}
54

55
std::string ProgramConfig::build_target()
5✔
56
{
57
  return POL_BUILD_TARGET;
5✔
58
}
59

60
std::string ProgramConfig::build_datetime()
9✔
61
{
62
  return POL_BUILD_DATETIME;
9✔
63
}
64

65
///////////////////////////////////////////////////////////////////////////////
66
}  // namespace Pol::Clib
67
   // namespaces
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc