One function

CoverItem in mciepluc/cocotb-coverage

The author described this change as Fix `CoverItem.detailed_coverage` field generation. It counts as a record because the check below fails on the code as it stood at d3f33f5f3 and passes on f051ff508, with nothing else changed between the two runs.

Fix saved2022-01-17
Sharing licenceBSD-2-Clause · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a docstring

Class used to describe coverage groups. `CoverItem` objects are created automatically. This is a base class for all coverage primitives (:class:`CoverPoint`, :class:`CoverCross` or :class:`CoverCheck`). It may be used as a base class for other, user-defined coverage types.

The change

151151 """
152152 coverage = {}
153153 for child in self._children:
154- coverage.append(child.detailed_coverage)
154+ coverage[child._name] = child.detailed_coverage
155155 return coverage
156156
157157 @property

The check that tells the two apart

failpass·tests/test_coverage/coverage_test.py::test_coveritem_detailed_coverage

Check file tests/test_coverage/coverage_test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itd3f33f5f331326e5532789b6ee69356f62422cb4
Broken version dated2021-11-07
Modulecocotb_coverage.coverage
Units changedCoverItem
Fingerprintef5c1eb15d452660
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.