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

polserver / polserver / 28964407401

08 Jul 2026 05:58PM UTC coverage: 61.276% (+0.3%) from 60.927%
28964407401

push

github

web-flow
Split bobject header  (#892)

* splitted bobject header

* fixed runecl

* crashfix

* missing header

* more missing (debug build)

* runecl debug include

* renamed contiter, moved formating

* removed more unused headers

1145 of 1517 new or added lines in 23 files covered. (75.48%)

217 existing lines in 4 files now uncovered.

44972 of 73392 relevant lines covered (61.28%)

557151.3 hits per line

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

94.12
/pol-core/bscript/bboolean.cpp
1
#include "bboolean.h"
2

3
#include "berror.h"
4

5
#include <fmt/compile.h>
6
#include <fmt/format.h>
7
#include <istream>
8

9
namespace Pol::Bscript
10
{
11
using namespace fmt::literals;
12

13
#if BOBJECTIMP_DEBUG
14
BBoolean::BBoolean( bool bval ) : BObjectImp( OTBoolean ), bval_( bval ) {}
15
BBoolean::BBoolean( const BBoolean& B ) : BBoolean( B.bval_ ) {}
16
#endif
17

18
BObjectImp* BBoolean::unpack( std::istream& is )
12✔
19
{
20
  int lv;
21
  if ( is >> lv )
12✔
22
  {
23
    return new BBoolean( lv != 0 );
12✔
24
  }
25

NEW
26
  return new BError( "Error extracting Boolean value" );
×
27
}
28

29
void BBoolean::packonto( std::string& str ) const
24✔
30
{
31
  fmt::format_to( std::back_inserter( str ), "b{}"_cf, bval_ ? 1 : 0 );
24✔
32
}
24✔
33

34
BObjectImp* BBoolean::copy() const
240✔
35
{
36
  return new BBoolean( *this );
240✔
37
}
38

39
size_t BBoolean::sizeEstimate() const
56✔
40
{
41
  return sizeof( BBoolean );
56✔
42
}
43

44
bool BBoolean::isTrue() const
596✔
45
{
46
  return bval_;
596✔
47
}
48

49
bool BBoolean::operator==( const BObjectImp& objimp ) const
42✔
50
{
51
  return bval_ == objimp.isTrue();
42✔
52
}
53

54
std::string BBoolean::getStringRep() const
61✔
55
{
56
  return bval_ ? "true" : "false";
61✔
57
}
58
}  // namespace Pol::Bscript
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc