1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

C++でtemplate使ってカバレッジとったらnot executed

Last updated at Posted at 2015-12-06

lcov使ってカバレッジとったら## not executedになっていたので調査。

当初は以下の対処で直るのかなと思っていたが違った。
http://d.hatena.ne.jp/yupo5656/20051215/p2

原因はlcovの実行の仕方だったみたい。
templateクラスを同じtemplate引数でインスタンス化しているcppファイルが複数あったため、lcovでカバレッジ取得すると最後のファイルの分だけでカバレッジの結果が上書きされていた。

lcovの実行方法直すのはやり方がよくわからなかったので、呼び出しを1ファイルからだけにして解決した。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?