[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25351: Patch for bug#25351: 26.0.50; Testcover doesn't work on code
From: |
Gemini Lasswell |
Subject: |
bug#25351: Patch for bug#25351: 26.0.50; Testcover doesn't work on code that creates simple lists and modifies them |
Date: |
Tue, 26 Sep 2017 14:04:13 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) |
Here is a patch which fixes this bug by making a copy of the result of
the first evaluation of a form to compare with the results of
subsequent evaluations.
This patch is based on the two patches I sent yesterday to bug#25316.
Because Testcover may encounter circular structures in the code it
instruments, I wrote a modified version of copy-tree which can handle
circular structures. It's possibly generally useful enough to belong
in subr.el alongside copy-tree instead of being an internal Testcover
function, but I will submit that idea as a separate wishlist item.
There isn't currently a version of `equal' which works for circular
structures, so Testcover's handling of them is not fully implemented,
but it now avoids stopping the code under coverage with an error
message.
0001-Stop-Testcover-from-producing-spurious-1value-errors.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#25351: Patch for bug#25351: 26.0.50; Testcover doesn't work on code that creates simple lists and modifies them,
Gemini Lasswell <=