[tools] txtar: add UTF-8 and comment parsing test

0 views
Skip to first unread message

Michael Matloob (Gerrit)

unread,
Mar 17, 2026, 1:00:25 PM (yesterday) Mar 17
to Saurabh Game, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Jonathan Amsterdam, Go LUCI, t hepudds, Michael Matloob, Gopher Robot, golang-co...@googlegroups.com

Michael Matloob submitted the change

Change information

Commit message:
txtar: add UTF-8 test case in TestParse

Adds a new test case for the txtar package to verify that:

Parse correctly handles UTF-8 characters in file contents.
Leading comment lines are preserved properly.
This improves test coverage for non-ASCII content and ensures
comment parsing works as expected.
Change-Id: I3eff5e09f6c3c588ca817c36178c9a7bafaa4ea7
GitHub-Last-Rev: 920f68450aa0705832aa9abafc0b6c68a332e126
GitHub-Pull-Request: golang/tools#600
Reviewed-by: Michael Matloob <mat...@google.com>
Reviewed-by: Michael Matloob <mat...@golang.org>
Reviewed-by: Jonathan Amsterdam <j...@google.com>
Files:
  • M txtar/archive_test.go
Change size: S
Delta: 1 file changed, 16 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Michael Matloob, +1 by Jonathan Amsterdam, +2 by Michael Matloob
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I3eff5e09f6c3c588ca817c36178c9a7bafaa4ea7
Gerrit-Change-Number: 712980
Gerrit-PatchSet: 6
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: Michael Matloob <mat...@golang.org>
Gerrit-Reviewer: Michael Matloob <mat...@google.com>
Gerrit-Reviewer: t hepudds <thepud...@gmail.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: Saurabh Game <srga...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages