• 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

0.0
/pol-core/bscript/objstrm.cpp
1
/** @file
2
 *
3
 * @par History
4
 */
5

6

7
#include "bobject.h"
8
#include "impstr.h"
9

10

11
#include <sstream>
12

13

14
namespace Pol::Bscript
15
{
UNCOV
16
std::ostream& operator<<( std::ostream& os, const BObject& obj )
×
17
{
UNCOV
18
  obj.impptr()->printOn( os );
×
19
  return os;
×
20
}
21

UNCOV
22
std::ostream& operator<<( std::ostream& os, const BObjectImp& objimp )
×
23
{
UNCOV
24
  objimp.printOn( os );
×
25
  return os;
×
26
}
27

UNCOV
28
void BObject::printOn( std::ostream& os ) const
×
29
{
UNCOV
30
  os << "{ BObject: " << BObjectImp::typestr( objimp->type() ) << " }";
×
31
}
×
32

UNCOV
33
void BObjectImp::printOn( std::ostream& os ) const
×
34
{
UNCOV
35
  os << "{ BObjectImp: " << typestr( type() ) << " }";
×
36
}
×
37

UNCOV
38
void UninitObject::printOn( std::ostream& os ) const
×
39
{
UNCOV
40
  os << "{ Uninitialized Object }";
×
41
}
×
42

UNCOV
43
void ObjArray::printOn( std::ostream& os ) const
×
44
{
UNCOV
45
  os << " { Array[" << ref_arr.size() << "] }";
×
46
}
×
47

UNCOV
48
void String::printOn( std::ostream& os ) const
×
49
{
UNCOV
50
  os << '\"' << value_ << '\"';
×
51
}
×
52

53
#if 0
54
    void SubString::printOn(std::ostream& os ) const
55
  {
56
    os << "{ \"";
57
    os << ref_String->value_.substr( begin-1, len );
58

59
    os << "\" }";
60
  }
61
#endif
62

UNCOV
63
void Double::printOn( std::ostream& os ) const
×
64
{
65
  // CHECKME: consider setting precision
UNCOV
66
  os << dval_;
×
67
}
×
68

UNCOV
69
void BLong::printOn( std::ostream& os ) const
×
70
{
UNCOV
71
  os << lval_;
×
72
}
×
73

UNCOV
74
void BBoolean::printOn( std::ostream& os ) const
×
75
{
UNCOV
76
  os << ( bval_ ? "true" : "false" );
×
77
}
×
78
}  // namespace Pol::Bscript
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