From c6790de051f7ef71a8f9454335c67892856d714b Mon Sep 17 00:00:00 2001 From: xinyan Date: Sat, 30 Mar 2019 15:44:46 +0800 Subject: [PATCH] cpp_test_repo: Update baseline. --- .../baseline/cpp_test_repo/A.g.json | 208 ++++++++++++++---- .../baseline/cpp_test_repo/B.g.json | 199 +++++++++++++---- .../baseline/cpp_test_repo/C.g.json | 169 +++++++++++--- .../baseline/cpp_test_repo/D.g.json | 169 +++++++++++--- 4 files changed, 598 insertions(+), 147 deletions(-) diff --git a/test/test_analytics/baseline/cpp_test_repo/A.g.json b/test/test_analytics/baseline/cpp_test_repo/A.g.json index 2594c7d3aa5..467eb2ec7d2 100644 --- a/test/test_analytics/baseline/cpp_test_repo/A.g.json +++ b/test/test_analytics/baseline/cpp_test_repo/A.g.json @@ -4,6 +4,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { + "addedBy": "A", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "A", "weight": null @@ -12,6 +16,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { + "addedBy": "A", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { "addedBy": "A", "weight": null @@ -24,6 +32,14 @@ "addedBy": "A", "weight": null }, + "TStream OpenAndValidate(const TPath arg1)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "A", + "weight": null + }, + "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { + "addedBy": "A", + "weight": null + }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "addedBy": "A", "weight": null @@ -32,10 +48,46 @@ "addedBy": "A", "weight": null }, + "bool Confirm(const std::string &prompt)|->|bool Confirm(const std::string &prompt)": { + "addedBy": "A", + "weight": null + }, + "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { + "addedBy": "A", + "weight": null + }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|enum class StringComparison : int {}": { "addedBy": "A", "weight": null }, + "const char *FriendlyNameOf()|->|TEnum operator|(TEnum lhs, TEnum rhs)": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf()|->|const char *FriendlyNameOf(const type_info &type)": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const std::type_index &type)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const type_info &type)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const|->|double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { + "addedBy": "A", + "weight": null + }, + "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const|->|int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { + "addedBy": "A", + "weight": null + }, "int main(int argc, char *argv[])|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "A", "weight": null @@ -43,6 +95,22 @@ "int main(int argc, char *argv[])|->|bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { "addedBy": "A", "weight": null + }, + "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const|->|std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { + "addedBy": "A", + "weight": null + }, + "void ConfigurationParser::Load(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { + "addedBy": "A", + "weight": null + }, + "void ReportException(const std::exception &ex, int level)|->|void ReportException(const std::exception &ex, int level)": { + "addedBy": "A", + "weight": null + }, + "void ValidateStream(const TStream &stream)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "A", + "weight": null } }, "nodes": { @@ -204,11 +272,12 @@ }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 5, + "adds": 6, "dels": 0 } }, @@ -216,11 +285,12 @@ }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 4, + "adds": 5, "dels": 0 } }, @@ -264,11 +334,12 @@ }, "RowReader &operator>>(RowReader &reader, bool &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 24, + "adds": 25, "dels": 0 } }, @@ -276,11 +347,12 @@ }, "RowReader &operator>>(RowReader &reader, double &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -288,11 +360,12 @@ }, "RowReader &operator>>(RowReader &reader, float &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -300,11 +373,12 @@ }, "RowReader &operator>>(RowReader &reader, int &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -312,11 +386,12 @@ }, "RowReader &operator>>(RowReader &reader, long &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -324,11 +399,12 @@ }, "RowReader &operator>>(RowReader &reader, std::string &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -352,7 +428,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -364,7 +440,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -376,7 +452,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -412,7 +488,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 54, "dels": 0 } }, @@ -424,7 +500,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 10, "dels": 0 } }, @@ -472,7 +548,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -484,7 +560,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -504,11 +580,12 @@ }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -516,11 +593,12 @@ }, "bool Confirm(const std::string &prompt)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 17, + "adds": 18, "dels": 0 } }, @@ -528,11 +606,12 @@ }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 29, + "adds": 30, "dels": 0 } }, @@ -568,7 +647,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -580,7 +659,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -599,6 +678,42 @@ "size": null }, "const char *FriendlyNameOf()": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 4, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const std::type_index &type)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const type_info &type)": { "files": [ "Utility.h" ], @@ -636,11 +751,12 @@ }, "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -720,11 +836,12 @@ }, "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -772,7 +889,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -780,11 +897,12 @@ }, "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -796,7 +914,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, @@ -804,11 +922,12 @@ }, "void ConfigurationParser::Load(std::istream &inputStream)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 23, + "adds": 24, "dels": 0 } }, @@ -816,11 +935,12 @@ }, "void ReportException(const std::exception &ex, int level)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 20, + "adds": 21, "dels": 0 } }, @@ -844,7 +964,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, diff --git a/test/test_analytics/baseline/cpp_test_repo/B.g.json b/test/test_analytics/baseline/cpp_test_repo/B.g.json index d0db7b42971..1bf8e0d0134 100644 --- a/test/test_analytics/baseline/cpp_test_repo/B.g.json +++ b/test/test_analytics/baseline/cpp_test_repo/B.g.json @@ -4,6 +4,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { + "addedBy": "A", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "A", "weight": null @@ -12,6 +16,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { + "addedBy": "A", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { "addedBy": "A", "weight": null @@ -24,6 +32,14 @@ "addedBy": "A", "weight": null }, + "TStream OpenAndValidate(const TPath arg1)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "A", + "weight": null + }, + "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { + "addedBy": "A", + "weight": null + }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "addedBy": "A", "weight": null @@ -32,10 +48,46 @@ "addedBy": "A", "weight": null }, + "bool Confirm(const std::string &prompt)|->|bool Confirm(const std::string &prompt)": { + "addedBy": "B", + "weight": null + }, + "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { + "addedBy": "B", + "weight": null + }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|enum class StringComparison : int {}": { "addedBy": "B", "weight": null }, + "const char *FriendlyNameOf()|->|TEnum operator|(TEnum lhs, TEnum rhs)": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf()|->|const char *FriendlyNameOf(const type_info &type)": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const std::type_index &type)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "const char *FriendlyNameOf(const type_info &type)|->|const char *FriendlyNameOf()": { + "addedBy": "A", + "weight": null + }, + "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const|->|double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { + "addedBy": "A", + "weight": null + }, + "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const|->|int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { + "addedBy": "A", + "weight": null + }, "int main(int argc, char *argv[])|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "B", "weight": null @@ -55,6 +107,22 @@ "int main(int argc, char *argv[])|->|void ReportException(const std::exception &ex, int level)": { "addedBy": "B", "weight": null + }, + "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const|->|std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { + "addedBy": "A", + "weight": null + }, + "void ConfigurationParser::Load(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { + "addedBy": "A", + "weight": null + }, + "void ReportException(const std::exception &ex, int level)|->|void ReportException(const std::exception &ex, int level)": { + "addedBy": "B", + "weight": null + }, + "void ValidateStream(const TStream &stream)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "A", + "weight": null } }, "nodes": { @@ -216,11 +284,12 @@ }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 5, + "adds": 6, "dels": 0 } }, @@ -228,11 +297,12 @@ }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 4, + "adds": 5, "dels": 0 } }, @@ -276,11 +346,12 @@ }, "RowReader &operator>>(RowReader &reader, bool &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 24, + "adds": 25, "dels": 0 } }, @@ -288,11 +359,12 @@ }, "RowReader &operator>>(RowReader &reader, double &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -300,11 +372,12 @@ }, "RowReader &operator>>(RowReader &reader, float &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -312,11 +385,12 @@ }, "RowReader &operator>>(RowReader &reader, int &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -324,11 +398,12 @@ }, "RowReader &operator>>(RowReader &reader, long &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -336,11 +411,12 @@ }, "RowReader &operator>>(RowReader &reader, std::string &rhs)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -364,7 +440,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -376,7 +452,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -388,7 +464,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -424,7 +500,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 54, "dels": 0 } }, @@ -436,7 +512,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 10, "dels": 0 } }, @@ -484,7 +560,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -496,7 +572,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -516,11 +592,12 @@ }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -532,7 +609,7 @@ ], "history": { "A": { - "adds": 17, + "adds": 18, "dels": 0 } }, @@ -544,7 +621,7 @@ ], "history": { "A": { - "adds": 29, + "adds": 30, "dels": 0 } }, @@ -580,7 +657,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -592,7 +669,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -611,6 +688,42 @@ "size": null }, "const char *FriendlyNameOf()": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 4, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const std::type_index &type)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const type_info &type)": { "files": [ "Utility.h" ], @@ -648,11 +761,12 @@ }, "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -732,11 +846,12 @@ }, "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -788,7 +903,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -796,11 +911,12 @@ }, "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -812,7 +928,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, @@ -820,11 +936,12 @@ }, "void ConfigurationParser::Load(std::istream &inputStream)": { "files": [ - "TextFileParsers.cpp" + "TextFileParsers.cpp", + "TextFileParsers.h" ], "history": { "A": { - "adds": 23, + "adds": 24, "dels": 0 } }, @@ -836,7 +953,7 @@ ], "history": { "A": { - "adds": 20, + "adds": 21, "dels": 0 } }, @@ -860,7 +977,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, diff --git a/test/test_analytics/baseline/cpp_test_repo/C.g.json b/test/test_analytics/baseline/cpp_test_repo/C.g.json index e8db0ec0531..e08e41d7f94 100644 --- a/test/test_analytics/baseline/cpp_test_repo/C.g.json +++ b/test/test_analytics/baseline/cpp_test_repo/C.g.json @@ -4,6 +4,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { + "addedBy": "C", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "C", "weight": null @@ -12,6 +16,10 @@ "addedBy": "C", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { + "addedBy": "C", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { "addedBy": "C", "weight": null @@ -24,6 +32,14 @@ "addedBy": "C", "weight": null }, + "TStream OpenAndValidate(const TPath arg1)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "C", + "weight": null + }, + "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { + "addedBy": "C", + "weight": null + }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "addedBy": "C", "weight": null @@ -32,10 +48,46 @@ "addedBy": "C", "weight": null }, + "bool Confirm(const std::string &prompt)|->|bool Confirm(const std::string &prompt)": { + "addedBy": "C", + "weight": null + }, + "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { + "addedBy": "C", + "weight": null + }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|enum class StringComparison : int {}": { "addedBy": "C", "weight": null }, + "const char *FriendlyNameOf()|->|TEnum operator|(TEnum lhs, TEnum rhs)": { + "addedBy": "C", + "weight": null + }, + "const char *FriendlyNameOf()|->|const char *FriendlyNameOf(const type_info &type)": { + "addedBy": "C", + "weight": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)|->|const char *FriendlyNameOf()": { + "addedBy": "C", + "weight": null + }, + "const char *FriendlyNameOf(const std::type_index &type)|->|const char *FriendlyNameOf()": { + "addedBy": "C", + "weight": null + }, + "const char *FriendlyNameOf(const type_info &type)|->|const char *FriendlyNameOf()": { + "addedBy": "C", + "weight": null + }, + "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const|->|double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { + "addedBy": "C", + "weight": null + }, + "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const|->|int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { + "addedBy": "C", + "weight": null + }, "int main(int argc, char *argv[])|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "C", "weight": null @@ -55,6 +107,22 @@ "int main(int argc, char *argv[])|->|void ReportException(const std::exception &ex, int level)": { "addedBy": "B", "weight": null + }, + "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const|->|std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { + "addedBy": "C", + "weight": null + }, + "void ConfigurationParser::Load(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { + "addedBy": "C", + "weight": null + }, + "void ReportException(const std::exception &ex, int level)|->|void ReportException(const std::exception &ex, int level)": { + "addedBy": "C", + "weight": null + }, + "void ValidateStream(const TStream &stream)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "C", + "weight": null } }, "nodes": { @@ -220,7 +288,7 @@ ], "history": { "A": { - "adds": 5, + "adds": 6, "dels": 0 } }, @@ -232,7 +300,7 @@ ], "history": { "A": { - "adds": 4, + "adds": 5, "dels": 0 } }, @@ -280,7 +348,7 @@ ], "history": { "A": { - "adds": 24, + "adds": 25, "dels": 0 }, "C": { @@ -296,7 +364,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -308,7 +376,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -320,7 +388,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -332,7 +400,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -344,7 +412,7 @@ ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -368,7 +436,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -380,7 +448,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -392,7 +460,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -428,7 +496,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 54, "dels": 0 } }, @@ -440,7 +508,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 10, "dels": 0 } }, @@ -488,7 +556,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -500,7 +568,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -524,7 +592,7 @@ ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 }, "C": { @@ -536,11 +604,12 @@ }, "bool Confirm(const std::string &prompt)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 17, + "adds": 18, "dels": 0 } }, @@ -548,11 +617,12 @@ }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 29, + "adds": 30, "dels": 0 }, "C": { @@ -592,7 +662,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -604,7 +674,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -623,6 +693,42 @@ "size": null }, "const char *FriendlyNameOf()": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 4, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const std::type_index &type)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const type_info &type)": { "files": [ "Utility.h" ], @@ -664,7 +770,7 @@ ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -752,7 +858,7 @@ ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -808,7 +914,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -820,7 +926,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -832,7 +938,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, @@ -844,7 +950,7 @@ ], "history": { "A": { - "adds": 23, + "adds": 24, "dels": 0 } }, @@ -852,11 +958,12 @@ }, "void ReportException(const std::exception &ex, int level)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 20, + "adds": 21, "dels": 0 } }, @@ -880,7 +987,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, diff --git a/test/test_analytics/baseline/cpp_test_repo/D.g.json b/test/test_analytics/baseline/cpp_test_repo/D.g.json index e5eb44a4f6d..257868b0e20 100644 --- a/test/test_analytics/baseline/cpp_test_repo/D.g.json +++ b/test/test_analytics/baseline/cpp_test_repo/D.g.json @@ -4,6 +4,10 @@ "addedBy": "A", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)": { + "addedBy": "D", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::filesystem::path filePath)|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "D", "weight": null @@ -12,6 +16,10 @@ "addedBy": "D", "weight": null }, + "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|ConfigurationParser::ConfigurationParser(std::istream &inputStream)": { + "addedBy": "D", + "weight": null + }, "ConfigurationParser::ConfigurationParser(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { "addedBy": "D", "weight": null @@ -24,6 +32,14 @@ "addedBy": "D", "weight": null }, + "TStream OpenAndValidate(const TPath arg1)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "D", + "weight": null + }, + "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const": { + "addedBy": "D", + "weight": null + }, "bool ConfigurationParser::GetBool(const std::string &key, bool defaultValue) const|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "addedBy": "D", "weight": null @@ -32,10 +48,46 @@ "addedBy": "D", "weight": null }, + "bool Confirm(const std::string &prompt)|->|bool Confirm(const std::string &prompt)": { + "addedBy": "D", + "weight": null + }, + "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { + "addedBy": "D", + "weight": null + }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)|->|enum class StringComparison : int {}": { "addedBy": "D", "weight": null }, + "const char *FriendlyNameOf()|->|TEnum operator|(TEnum lhs, TEnum rhs)": { + "addedBy": "D", + "weight": null + }, + "const char *FriendlyNameOf()|->|const char *FriendlyNameOf(const type_info &type)": { + "addedBy": "D", + "weight": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)|->|const char *FriendlyNameOf()": { + "addedBy": "D", + "weight": null + }, + "const char *FriendlyNameOf(const std::type_index &type)|->|const char *FriendlyNameOf()": { + "addedBy": "D", + "weight": null + }, + "const char *FriendlyNameOf(const type_info &type)|->|const char *FriendlyNameOf()": { + "addedBy": "D", + "weight": null + }, + "double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const|->|double ConfigurationParser::GetDouble(const std::string &key, double defaultValue) const": { + "addedBy": "D", + "weight": null + }, + "int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const|->|int ConfigurationParser::GetInt(const std::string &key, int defaultValue) const": { + "addedBy": "D", + "weight": null + }, "int main(int argc, char *argv[])|->|TStream OpenAndValidate(const TPath arg1)": { "addedBy": "C", "weight": null @@ -55,6 +107,22 @@ "int main(int argc, char *argv[])|->|void ReportException(const std::exception &ex, int level)": { "addedBy": "B", "weight": null + }, + "std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const|->|std::string ConfigurationParser::GetString(const std::string &key, const std::string &defaultValue) const": { + "addedBy": "D", + "weight": null + }, + "void ConfigurationParser::Load(std::istream &inputStream)|->|void ConfigurationParser::Load(std::istream &inputStream)": { + "addedBy": "D", + "weight": null + }, + "void ReportException(const std::exception &ex, int level)|->|void ReportException(const std::exception &ex, int level)": { + "addedBy": "D", + "weight": null + }, + "void ValidateStream(const TStream &stream)|->|std::string StreamStatusToString(const TStream &stream)": { + "addedBy": "D", + "weight": null } }, "nodes": { @@ -220,7 +288,7 @@ ], "history": { "A": { - "adds": 5, + "adds": 6, "dels": 0 } }, @@ -232,7 +300,7 @@ ], "history": { "A": { - "adds": 4, + "adds": 5, "dels": 0 } }, @@ -280,7 +348,7 @@ ], "history": { "A": { - "adds": 24, + "adds": 25, "dels": 0 }, "C": { @@ -300,7 +368,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -312,7 +380,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -324,7 +392,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -336,7 +404,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -348,7 +416,7 @@ ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 } }, @@ -372,7 +440,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -384,7 +452,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -396,7 +464,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -432,7 +500,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 54, "dels": 0 } }, @@ -444,7 +512,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 10, "dels": 0 } }, @@ -492,7 +560,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 5, "dels": 0 } }, @@ -504,7 +572,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -528,7 +596,7 @@ ], "history": { "A": { - "adds": 16, + "adds": 17, "dels": 0 }, "C": { @@ -544,11 +612,12 @@ }, "bool Confirm(const std::string &prompt)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 17, + "adds": 18, "dels": 0 } }, @@ -556,11 +625,12 @@ }, "bool Equal(const std::string &lhs, const std::string &rhs, StringComparison comparision)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 29, + "adds": 30, "dels": 0 }, "C": { @@ -604,7 +674,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -616,7 +686,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 4, "dels": 0 } }, @@ -635,6 +705,42 @@ "size": null }, "const char *FriendlyNameOf()": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 4, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const ReliabilityNetworkEntry &instance)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const std::type_index &type)": { + "files": [ + "Utility.h" + ], + "history": { + "A": { + "adds": 1, + "dels": 0 + } + }, + "size": null + }, + "const char *FriendlyNameOf(const type_info &type)": { "files": [ "Utility.h" ], @@ -676,7 +782,7 @@ ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -768,7 +874,7 @@ ], "history": { "A": { - "adds": 12, + "adds": 13, "dels": 0 } }, @@ -828,7 +934,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 7, "dels": 0 } }, @@ -840,7 +946,7 @@ ], "history": { "A": { - "adds": 6, + "adds": 7, "dels": 0 } }, @@ -852,7 +958,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } }, @@ -864,7 +970,7 @@ ], "history": { "A": { - "adds": 23, + "adds": 24, "dels": 0 } }, @@ -872,11 +978,12 @@ }, "void ReportException(const std::exception &ex, int level)": { "files": [ - "Utility.cpp" + "Utility.cpp", + "Utility.h" ], "history": { "A": { - "adds": 20, + "adds": 21, "dels": 0 } }, @@ -900,7 +1007,7 @@ ], "history": { "A": { - "adds": 1, + "adds": 8, "dels": 0 } },