[#5] Fix bad field naming

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2023-08-15 17:36:19 +03:00
parent c77afdc879
commit 66bd0dc9d6

View file

@ -20,7 +20,7 @@ type coverline struct {
StartCol int StartCol int
EndLine int EndLine int
EndCol int EndCol int
WTFnumber int Statements int
IsCovered bool IsCovered bool
} }
@ -65,7 +65,7 @@ func getSeqPoints(t testing.TB, di *compiler.DebugInfo, docs []int) []coverline
StartCol: seqPoint.StartCol, StartCol: seqPoint.StartCol,
EndLine: seqPoint.EndLine, EndLine: seqPoint.EndLine,
EndCol: seqPoint.EndCol, EndCol: seqPoint.EndCol,
WTFnumber: 1, Statements: 1,
IsCovered: false, IsCovered: false,
}) })
} }
@ -120,7 +120,7 @@ func printToFile(t testing.TB, cov []coverline, name string) {
if info.IsCovered { if info.IsCovered {
covered++ covered++
} }
line := fmt.Sprintf("%s:%d.%d,%d.%d %d %d\n", info.Doc, info.StartLine, info.StartCol, info.EndLine, info.EndCol, info.WTFnumber, covered) line := fmt.Sprintf("%s:%d.%d,%d.%d %d %d\n", info.Doc, info.StartLine, info.StartCol, info.EndLine, info.EndCol, info.Statements, covered)
_, err = f.WriteString(line) _, err = f.WriteString(line)
require.NoError(t, err) require.NoError(t, err)
} }