mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-15 03:59:12 +01:00
8 lines
426 B
Text
8 lines
426 B
Text
|
Il branch coverage di un insieme di test cases <20> la percentuale di branch del programma che sono attraversati da almeno un test case.
|
|||
|
Si consideri la seguente funzione C:
|
|||
|
-----------
|
|||
|
int f(int x, int y) {
|
|||
|
if (x - y <= 0) { if (x + y >= 1) return (1); else return (2); }
|
|||
|
else {if (2*x + y >= 5) return (3); else return (4); }
|
|||
|
} /* f() */
|
|||
|
Quale dei seguenti test sets consegue una branch coverage del 100% ?
|