From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antoine Kalmbach Newsgroups: gmane.lisp.guile.bugs Subject: bug#57377: [PATCH] api-coverage.texi: fix example, remove mentions of unimplemented features Date: Wed, 24 Aug 2022 12:09:00 +0300 Message-ID: <84fshmovo3.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26183"; mail-complaints-to="usenet@ciao.gmane.io" To: 57377@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Aug 24 11:14:48 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQmTI-0006c8-Gk for guile-bugs@m.gmane-mx.org; Wed, 24 Aug 2022 11:14:48 +0200 Original-Received: from localhost ([::1]:35892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQmTH-0007Yv-GM for guile-bugs@m.gmane-mx.org; Wed, 24 Aug 2022 05:14:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQmOg-0003Ha-QC for bug-guile@gnu.org; Wed, 24 Aug 2022 05:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQmOg-00051Y-G8 for bug-guile@gnu.org; Wed, 24 Aug 2022 05:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQmOf-0004JF-UR for bug-guile@gnu.org; Wed, 24 Aug 2022 05:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Antoine Kalmbach Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 24 Aug 2022 09:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57377 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166133216016486 (code B ref -1); Wed, 24 Aug 2022 09:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Aug 2022 09:09:20 +0000 Original-Received: from localhost ([127.0.0.1]:45654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQmO0-0004Hp-65 for submit@debbugs.gnu.org; Wed, 24 Aug 2022 05:09:20 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQmNy-0004Hh-0l for submit@debbugs.gnu.org; Wed, 24 Aug 2022 05:09:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQmNx-0002Nw-O8 for bug-guile@gnu.org; Wed, 24 Aug 2022 05:09:17 -0400 Original-Received: from lahtoruutu.iki.fi ([2a0b:5c81:1c1::37]:46680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQmNv-0004xt-AI for bug-guile@gnu.org; Wed, 24 Aug 2022 05:09:17 -0400 Original-Received: from thanatos (91-157-197-22.elisa-laajakaista.fi [91.157.197.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ane) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 5CC631B001A3 for ; Wed, 24 Aug 2022 12:09:07 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1661332147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=6qaLcdJqIYPaQMEoAGE41WCdL+mm/w9nCOddQZ9oZGg=; b=ve+yEyd1bIREW5f9RRBDgalVmB+Eaz9vg0POcLcrCwqtOYLpOpuXImZGw2PDh12Vm4Q+uY +/VinyZTS662QotOxpXEJPw3PDlqIszh/9F2jDTp6iu3wFqeWi2EldNib1c033E54mCY8q q8/wkah5SBV5CAby6syYqtWkuaq5Oke65ryMTWtIJ+MGBBGpxHEyIQbVNNZQjgMtECFHR1 ajUpLx98LkWBjBQc8sawJeTM+hheaLgw6oKX4lyW+mK8Uht6RWDow+H3LAUBZYa/S8Zvtr gdrZv/XA6dYGkglb8usruAq9DMEXuo1UuTFMPC6EUWEKUcK7FVZcE/9vneTJig== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1661332147; a=rsa-sha256; cv=none; b=v0+HaJAapmgXKiG1G3XYFYYFpaqJU8+AStJJ5W6DMvAOM/FCSMmWKINn1TcGS3n95v48IW iQlnqu990qGuyR1DhaAO2MuIRjbXyTDbb0s0lNLoNpYydMHgnzYPzMJrp/kiU+eD/d+0eD T3rpRnvPsPdZXgyH/6l+GEtLcDb89F3EnIXTOJNXb7d/OQ2VZzs717vIEyup0cH/BokbSq 1xgLK0C5pC4zvbe8Y2mXSuRa0wYnrMUGnptddG4e9X8T9qu/GA7ACtwN2sM6dn13JyeBKF FgGE2yfzd62Z7k5wCLo9GGQgV9FjiyW2E9BmE8vjxeVDYNQCvPBiv2UWgpdXhA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=ane smtp.mailfrom=ane@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1661332147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=6qaLcdJqIYPaQMEoAGE41WCdL+mm/w9nCOddQZ9oZGg=; b=CXuj2GH3iPbUwftI8HKyBI1sX7KA06HdWjFZWOsgPP4cvCJEJo5LaMNh9kS1selWSY+3Wd 21IQ3fclHXqD+DpgqvXTagV53Edc3bI02T/TpMnwX59WUohwXgjVlpuiw49X+9OIJZmIuz kclWAcdfIhqov441a/X7urlvIZLdtooE8pkNTGid2rnrB/6XsJuGkUaLL9DD89RcRLgGTE P71BadvOSghDnSZ6Rv9k1VYe7v4KETzeGVUYal8jLcEm9T18kfHW6YdtHwUnV328N8BPbA iMNAGd1mlCADQuH/AVdhFfIEEy+wfuncH5ClVpkYXtZdPuhJrfLjv0OuSpHK1A== Received-SPF: pass client-ip=2a0b:5c81:1c1::37; envelope-from=ane@iki.fi; helo=lahtoruutu.iki.fi X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10322 Archived-At: * doc/ref/api-coverage.texi (Code Coverage): #:modules is not supported... never seems to have been supported? (example): close port, not file. --- doc/ref/api-coverage.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ref/api-coverage.texi b/doc/ref/api-coverage.texi index 5081d343b..61ac4abf1 100644 --- a/doc/ref/api-coverage.texi +++ b/doc/ref/api-coverage.texi @@ -25,12 +25,12 @@ Return @code{#t} if @var{obj} is a @dfn{coverage data} object as returned by @code{with-code-coverage}. @end deffn -@deffn {Scheme Procedure} coverage-data->lcov data port #:key modules +@deffn {Scheme Procedure} coverage-data->lcov data port Traverse code coverage information @var{data}, as obtained with @code{with-code-coverage}, and write coverage information to port in the @code{.info} format used by @url{http://ltp.sourceforge.net/coverage/lcov.php, -LCOV}. The report will include all of @var{modules} (or, by default, all the -currently loaded modules) even if their code was not executed. +LCOV}. The report will include all the modules loaded at the time +coverage data was gathered, even if their code was not executed. The generated data can be fed to LCOV's @command{genhtml} command to produce an HTML report, which aids coverage data visualization. @@ -49,7 +49,7 @@ Here's an example use: (lambda (data result) (let ((port (open-output-file "lcov.info"))) (coverage-data->lcov data port) - (close file)))) + (close port)))) @end example In addition, the module provides low-level procedures that would make it -- 2.35.1