================
@@ -61,5 +65,16 @@ TEST(EntityIdTest, Transitivity) {
EXPECT_TRUE(Ids[0] < Ids[1] && Ids[1] < Ids[2]);
}
+TEST(EntityIdTest, StreamOutput) {
+ EntityIdTable Table;
+ EntityName Entity("c:@F@foo", "", {});
+ EntityId Id = Table.getId(Entity);
+
+ std::string S;
+ llvm::raw_string_ostream(S) << Id;
+ EXPECT_THAT(S, StartsWith("EntityId("));
----------------
aviralg wrote:
Got over my anger for Google Test and wrote a custom function to check for
digit sequence. The test is now complete. I am not happy with Google Test
though.
https://github.com/llvm/llvm-project/pull/181765
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits