Commit ee54d43
Tural Devrishev
compiler: add contract example to measure coverage
After `cd pkg/compiler` I ran test using command `go test -run '^TestSome$' -coverprofile=./contract/cover.out -cover`
received file `./contract/cover.out` ran following command `go test -run'^TestSome$' -coverprofile=./contract/cover.out -cover`
and got this result:
`
neo-go/pkg/compiler/contract/contract.go:3: MyEven 0.0%
total: (statements) 0.0%
`
although in `TestSome` case was tested when the number is even
Signed-off-by: Tural Devrishev <tural@nspcc.ru>1 parent fcc2a9a commit ee54d43
4 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
0 commit comments