| 298 | } |
| 299 | |
| 300 | bson::BSONObj BOBObj::build() { |
| 301 | if (isArrayLength >= 0) { |
| 302 | bool compact = isArrayLength == 0; |
| 303 | while (!compact && currentLoc < isArrayLength) { |
| 304 | bob->appendNull(std::to_string(currentLoc)); |
| 305 | currentLoc++; |
| 306 | } |
| 307 | return bob->obj(); |
| 308 | } else { |
| 309 | return bob->obj(); |
| 310 | } |
| 311 | } |
no outgoing calls
no test coverage detected