summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/mutable_bson_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/mutable/mutable_bson_test_utils.h')
-rw-r--r--src/mongo/bson/mutable/mutable_bson_test_utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/bson/mutable/mutable_bson_test_utils.h b/src/mongo/bson/mutable/mutable_bson_test_utils.h
index c52a7cbe6ed..ece4759edc2 100644
--- a/src/mongo/bson/mutable/mutable_bson_test_utils.h
+++ b/src/mongo/bson/mutable/mutable_bson_test_utils.h
@@ -59,11 +59,14 @@ inline bool operator==(const Document& lhs, const BSONObj& rhs) {
return checkDoc(lhs, rhs);
}
+/** Stream out an constelement; useful within ASSERT calls */
+std::ostream& operator<<(std::ostream& stream, const ConstElement& elt);
+
/** Stream out a document; useful within ASSERT calls */
std::ostream& operator<<(std::ostream& stream, const Document& doc);
/** Stream out an element; useful within ASSERT calls */
-std::ostream& operator<<(std::ostream& stream, const ConstElement& elt);
+std::ostream& operator<<(std::ostream& stream, const Element& elt);
/** Check that the two provided Documents are equivalent modulo field ordering in Object
* Elements. Leaf values are considered equal via woCompare.