google-gtestã«ãã¤ã®éã«ãValue-Parameterized Tests(VPTã¨åæã«ç¥ãã¾ã)ã¨ããæ©è½ã追å ããã¦ãã¾ããã 以åã®gtestã§ã¯ãå®è¡ããã度ã«ç¹å®ã®å¤ãå¤æ´ããªãããã¹ããããã¨ãé¢åã§ãããä¾ãã°ãboolã®ãã©ã°ãæã£ã¦ããããããtrueãfalseãã§æåãå¤ãããããªã±ã¼ã¹ã§ãããã®ãããªãã¹ãã±ã¼ã¹ãæ¸ãããã£ããã次ã®ããã«ãã«ãé¢æ°ãç¨æãããããã¹ããã³ãããã¦å¤ãå¤æ´ãããªã©ã®å¦çãæ¸ãå¿ è¦ãããã¾ããã TEST(HogeTest, hogehoge) { hogeHelper(true); // trueã§ãã¹ã hogeHelper(false); // falseã§ãã¹ã }åè ã§ã¯åé¡ãçºçããæã«ç°ãªããã¹ããåãè¡çªå·ãåºåãããããåé¡ã®ææ¡ããã¥ãããªãã¾ããã¾ããTESTããããããã£ãå ´åãããããã«ãã«ã
{{#tags}}- {{label}}
{{/tags}}