emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup 6cf8041 229/340: Update writing-tests.md to desc


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 6cf8041 229/340: Update writing-tests.md to describe new spy context structs
Date: Thu, 16 Dec 2021 14:59:40 -0500 (EST)

branch: elpa/buttercup
commit 6cf8041625ad027c66e1528b76dd1f08ade77cd8
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>

    Update writing-tests.md to describe new spy context structs
---
 docs/writing-tests.md | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/docs/writing-tests.md b/docs/writing-tests.md
index bd23376..94d9129 100644
--- a/docs/writing-tests.md
+++ b/docs/writing-tests.md
@@ -537,9 +537,12 @@ current buffer and arguments passed to all calls.
 the most recent call. `spy-calls-first` returns the current buffer and
 arguments for the first call.
 
-The spy context structs returned by these functions have 4 slots:
-`args`, `return-value`, `thrown-signal`, and `current-buffer`. See
-below for examples accessing these.
+Each spy context is a struct with 3 slots. A successful function call
+is represented by a `spy-context-return` struct with slots `args`,
+`current-buffer`, and `value`. A function call the signalled an error
+is represented by a `spy-context-thrown` struct with slots `args`,
+`current-buffer`, and `signal`. See the examples below for accessing
+these slots.
 
 Finally, `spy-calls-reset` clears all tracking for a spy.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]