rust/tests
Oliver Schneider 902c7d832b fix cc computation in the presence of diverging calls
CFG treats diverging calls as its completely own path out of the function.
While this makes sense, it should also mean that a panic should increase the cyclomatic
complexity. Instead it decreases it.

Minimal example:

```rust
if a {
    b
} else {
    panic!("cake");
}
d
```

creates the following graph

```dot
digraph G {
  "if a" -> "b"
  "if a" -> "panic!(\"cake\")"
  "b" -> c
}
```

which has a CC of 1 (3 - 4 + 2). A CC of 1 means there is one path through the program.
Obviously that is wrong. There are two paths. One returning normally, and one panicking.
2015-12-14 14:29:20 +01:00
..
compile-fail fix cc computation in the presence of diverging calls 2015-12-14 14:29:20 +01:00
cc_seme.rs fix cc computation in the presence of diverging calls 2015-12-14 14:29:20 +01:00
compile-test.rs
consts.rs Fix clippy with latest Rust nightly. 2015-12-05 12:33:58 +00:00
dogfood.rs high-speed-dogfood 2015-12-03 16:41:55 +01:00
mut_mut_macro.rs Remove executable permission from remaining source files 2015-11-09 08:04:41 -05:00
trim_multiline.rs