From 2b1ea89e7968854d67bb34f6b9f20c0bb921f560 Mon Sep 17 00:00:00 2001 From: Slava0135 Date: Sat, 25 May 2024 23:20:57 +0300 Subject: [PATCH] report coverage if script was already compiled --- pkg/neotest/compile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/neotest/compile.go b/pkg/neotest/compile.go index db62305ff..d7c1b33d6 100644 --- a/pkg/neotest/compile.go +++ b/pkg/neotest/compile.go @@ -49,6 +49,7 @@ func CompileSource(t testing.TB, sender util.Uint160, src io.Reader, opts *compi // CompileFile compiles a contract from the file and returns its NEF, manifest and hash. func CompileFile(t testing.TB, sender util.Uint160, srcPath string, configPath string) *Contract { if c, ok := contracts[srcPath]; ok { + collectCoverage(t, rawCoverage[c.Hash].debugInfo, c.Hash) return c }