What is src/hash/test_gen.awk in Go's source code for?

105 views
Skip to first unread message

Arkadiusz Drabczyk

unread,
Apr 16, 2021, 12:09:12 PM4/16/21
to golan...@googlegroups.com
There is src/hash/test_gen.awk in Go's source code repo. It was added
back in 2008. It's not called anywhere, at least directly, go binary
can be built successfully after removing it and 'git log --all -S
test_gen' finds only the commit that added it. Also, I'm not sure what
'cmd = "echo -n `9 sha1sum`' is supposed to do. Can you explain?

--
Arkadiusz Drabczyk

Sean Liao

unread,
Apr 16, 2021, 4:51:01 PM4/16/21
to golang-nuts
The comment in the file explains that it' was used to generate test cases, used:
Reply all
Reply to author
Forward
0 new messages