git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] t4015: improve coverage of function context test

From
Jeff King <peff@peff.net>
Date
Dec 19, 2019, 17:51 UTC
Message-ID
<20191219175115.GA677976@coredump.intra.peff.net>
In-Reply-To
<86fbb0fd-6b77-5d11-69cd-f0994a8ed759@web.de>
On Thu, Dec 19, 2019 at 06:35:43PM +0100, René Scharfe wrote:
Show 7 quoted lines
> Add a test that includes an actual function line in the test file to
> check if context is expanded to include the whole function, and add an
> ignored change before function context to check if that one stays hidden
> while the originally ignored change within function context is shown.
> 
> Helped-by: Jeff King <peff@peff.net>
> Signed-off-by: René Scharfe <l.s.r@web.de>
Thanks, the patch looks good.

Maybe worth noting in the commit message why there are two tests. Something like:

  This differs from the existing test, which is concerned with the case
  where there is no function line at all in the file (and we might look
  past the beginning of the file).
-Peff
Previous: René Scharfe
Message 5 of 5 in “t4015: improve coverage of function context test”
  1. t4015: improve coverage of function context testRené Scharfe, Dec 18, 2019
  2. Jeff KingDec 18, 2019
  3. René ScharfeDec 19, 2019
  4. t4015: improve coverage of function context testRené Scharfe, Dec 19, 2019
  5. Jeff KingDec 19, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.