type visitor … func (v *visitor) BeginPod(p pods.Pod) { … } func (v *visitor) EndPod(p pods.Pod) { … } func (v *visitor) VisitMetaDataFile(mdf string, mfr *decodemeta.CoverageMetaFileReader) { … } func (v *visitor) BeginCounterDataFile(cdf string, cdr *decodecounter.CounterDataReader, dirIdx int) { … } func (v *visitor) EndCounterDataFile(cdf string, cdr *decodecounter.CounterDataReader, dirIdx int) { … } func (v *visitor) VisitFuncCounterData(payload decodecounter.FuncPayload) { … } func (v *visitor) EndCounters() { … } func (v *visitor) BeginPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32) { … } func (v *visitor) EndPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32) { … } func (v *visitor) VisitFunc(pkgIdx uint32, fnIdx uint32, fd *coverage.FuncDesc) { … } func (v *visitor) Finish() { … } func TestIssue58411(t *testing.T) { … }