aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorY. C <ssspeed00@gmail.com>2023-01-14 15:22:17 +0800
committerGitHub <noreply@github.com>2023-01-14 07:22:17 +0000
commita63719e71f9e7c2496a8eef09aa58118deb0c0bc (patch)
treec2a4c68e73875b4cba2cbc982104b38f215bd586 /pkg
parent529798b02bd6d0960c70436ce38691a520ed19f5 (diff)
pkg/cover: add frame.EndLine in DoRawCoverFiles
Fix /rawcoverfiles missing argument
Diffstat (limited to 'pkg')
-rw-r--r--pkg/cover/html.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/cover/html.go b/pkg/cover/html.go
index 1b37cb111..5b9b86731 100644
--- a/pkg/cover/html.go
+++ b/pkg/cover/html.go
@@ -166,7 +166,8 @@ func (rg *ReportGenerator) DoRawCoverFiles(w http.ResponseWriter, progs []Prog,
fmt.Fprintf(buf, "PC,Module,Offset,Filename,StartLine,EndLine\n")
for _, frame := range rg.Frames {
offset := frame.PC - frame.Module.Addr
- fmt.Fprintf(buf, "0x%x,%v,0x%x,%v,%v\n", frame.PC, frame.Module.Name, offset, frame.Name, frame.StartLine)
+ fmt.Fprintf(buf, "0x%x,%v,0x%x,%v,%v,%v\n",
+ frame.PC, frame.Module.Name, offset, frame.Name, frame.StartLine, frame.EndLine)
}
buf.Flush()
return nil