LoginSignup
0
1

More than 5 years have passed since last update.

テストカバレッジ 関数を分割する利点

Posted at

[https://ameblo.jp/rhythmicallife/entry-10518632830.html]
上記引用

条件式が10個あったらC2を100%にしようとすれば、
最大1024通りのテストケースが必要となってしまう
しかしたとえば条件式5つずつの二本のコードに分割できるなら、
C2を100%にするには32通りをふたつで
64通りのテストケースとなり、これなら全件テストも現実的になってきた?

関数を分割するメリットがここにも出てくる。

0
1
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
0
1