[#5] Change test
Test function generates an output file with coverage. Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
25ec36439b
commit
44b3786463
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ func TestContract(t *testing.T) {
|
||||||
// test invalid key
|
// test invalid key
|
||||||
inv.InvokeFail(t, "Invalid key size", "putNumber", invalidKey, 42)
|
inv.InvokeFail(t, "Invalid key size", "putNumber", invalidKey, 42)
|
||||||
inv.InvokeFail(t, "Invalid key size", "getNumber", invalidKey)
|
inv.InvokeFail(t, "Invalid key size", "getNumber", invalidKey)
|
||||||
spew.Dump(inv.Methods)
|
// spew.Dump(inv.Methods)
|
||||||
|
inv.MakeCoverage(t, ctrDI, "contract.go", "c.out")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRun(t *testing.T) {
|
func TestRun(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue