concov ã®ããã¥ã¡ã³ããæ¸ããã¨æã£ãããã©ãä½ããæ¸ããå°ã£ãã®ã§ãã¨ãããããã®åã« gcov ã®ä½¿ãæ¹ã¨ã¯ã¾ãã©ãããæ¸ãã¦ã¿ã¾ãã gcov ã¨ã¯ C è¨èªã§æ¸ãããããã°ã©ã ã®ã«ãã¬ãã¸ã測å®ãããã¼ã«ã§ããgcc ã«ä»å±ãã¦ãã¾ãã åºæ¬çãªä½¿ãæ¹ ããããã³ã¼ããããã¨ããã /* test.c */ #include <stdio.h> int foo(int x, int y) { return x + y; } int bar(int x, int y) { return x - y; } int main(void) { printf("%d\n", foo(2, 3)); printf("%d\n", foo(3, 4)); return 0; } ã³ã³ãã¤ã«ããã-coverage ãã¤ãã㨠gcov ç¨ã®ãªãã¸ã§ã¯ããã¡ã¤ã«ãçæããã *1 ã $ g
{{#tags}}- {{label}}
{{/tags}}