• 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

68.97
/pol-core/bscript/compiler/Report.cpp
1
#include "Report.h"
2

3
#include "bscript/compiler/file/SourceLocation.h"
4
#include "clib/logfacility.h"
5

6
namespace Pol::Bscript::Compiler
7
{
8
Report::Report( bool display_warnings, bool display_errors, bool display_debugs )
3,213✔
9
    : display_warnings( display_warnings ),
3,213✔
10
      display_errors( display_errors ),
3,213✔
11
      display_debugs( display_debugs ),
3,213✔
12
      errors( 0 ),
3,213✔
13
      warnings( 0 )
3,213✔
14
{
15
}
3,213✔
16

17
void Report::report_error( const SourceLocation& source_location, const std::string& msg ) const
455✔
18
{
19
  try
20
  {
21
    ERROR_PRINTLN( "{}: error: {}", source_location, msg );
455✔
22
  }
UNCOV
23
  catch ( ... )
×
24
  {
UNCOV
25
  }
×
26
}
455✔
27

28
void Report::report_warning( const SourceLocation& source_location, const std::string& msg ) const
442✔
29
{
30
  try
31
  {
32
    ERROR_PRINTLN( "{}: warning: {}", source_location, msg );
442✔
33
  }
UNCOV
34
  catch ( ... )
×
35
  {
36
  }
×
37
}
442✔
38

UNCOV
39
void Report::report_debug( const SourceLocation& source_location, const std::string& msg ) const
×
40
{
41
  try
42
  {
UNCOV
43
    ERROR_PRINTLN( "{}: debug: {}", source_location, msg );
×
44
  }
45
  catch ( ... )
×
46
  {
47
  }
×
UNCOV
48
}
×
49

50
unsigned Report::error_count() const
30,189✔
51
{
52
  return errors;
30,189✔
53
}
54

55
unsigned Report::warning_count() const
5,098✔
56
{
57
  return warnings;
5,098✔
58
}
59

60
void Report::reset()
14✔
61
{
62
  errors = warnings = 0;
14✔
63
}
14✔
64

65

66
}  // namespace Pol::Bscript::Compiler
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