{"blog_url":"https://blog.emattsan.org/","version":"1.0","image_url":null,"blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","published":"2008-09-09 21:46:26","url":"https://blog.emattsan.org/entry/20080909/1220964386","provider_url":"https://hatena.blog","title":"googletest\u306b\u624b\u3092\u51fa\u3059","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20080909%2F1220964386\" title=\"googletest\u306b\u624b\u3092\u51fa\u3059 - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","type":"rich","provider_name":"Hatena Blog","categories":["C++"],"author_name":"E_Mattsan","description":"\u30b7\u30f3\u30d7\u30eb\u3067\u6271\u3044\u3084\u3059\u3044\u3068\u8033\u306b\u3057\u3066\u3001\u65e9\u901f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002 GitHub - google/googletest: Google Test\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u773a\u3081\u3066\u3044\u308b\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u78ba\u304b\u306b\u7c21\u5358\u305d\u3046\u3002\u8a66\u3057\u3066\u307f\u307e\u3059\u3002 \u6700\u521d\u306e\u30c6\u30b9\u30c8 #include <gtest/gtest.h> // \u30c6\u30b9\u30c8\u3055\u308c\u308b\u95a2\u6570 int add(int x, int y) { return x + y; } // \u30c6\u30b9\u30c8\u3059\u308b\u95a2\u6570: \u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u540d AddTest / \u30c6\u30b9\u30c8\u540d Add TEST(AddTest, Add) { EXPECT_EQ(1, add(1, 0)); EXPECT_EQ(1, add(0, 1)); EXPEC\u2026"}