< Summary

Information
Class: Minesweeper.MineItem
Assembly: Minesweeper
File(s): /home/runner/work/poc-fsharp-tdd-kata-minesweeper1/poc-fsharp-tdd-kata-minesweeper1/src/Minesweeper/MineItem.fs
Tag: 16_2290032055
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 50
Line coverage: 100%
Branch coverage
60%
Covered branches: 6
Total branches: 10
Branch coverage: 60%
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Coverage History

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
CompareTo(...)60%10100%

File(s)

/home/runner/work/poc-fsharp-tdd-kata-minesweeper1/poc-fsharp-tdd-kata-minesweeper1/src/Minesweeper/MineItem.fs

#LineLine coverage
 1namespace Minesweeper
 2
 1983type MineItem =
 4    | Covered of MineItem
 5    | Bomb
 6    | Zero
 7    | One
 8    | Two
 9    | Three
 10    | Four
 11    | Five
 12    | Six
 13    | Seven
 14    | Eight
 15
 16
 17module MineItem =
 18    let click v =
 19        match v with
 20        | Covered x -> x
 21        | x -> x
 22
 23    let toString v =
 24        match v with
 25        | Covered _ -> "."
 26        | Bomb -> "*"
 27        | Zero -> "0"
 28        | One -> "1"
 29        | Two -> "2"
 30        | Three -> "3"
 31        | Four -> "4"
 32        | Five -> "5"
 33        | Six -> "6"
 34        | Seven -> "7"
 35        | Eight -> "8"
 36
 37    let rec add v =
 38        match v with
 39        | Covered x -> Covered (add x)
 40        | Bomb -> Bomb
 41        | Zero -> One
 42        | One -> Two
 43        | Two -> Three
 44        | Three -> Four
 45        | Four -> Five
 46        | Five -> Six
 47        | Six -> Seven
 48        | Seven -> Eight
 49        | Eight -> Eight
 50

Methods/Properties

CompareTo(Minesweeper.MineItem)