Repository navigation
🍀 Proposal: pkg/util/md5 Enhancement (sub task of pkg/util Enhancement #833) - #856
Conversation
|
@HXCGIT the TestCase in the help_test.go maybe fail, because the case needs a test file to exist in the same directory, but don't commit the test file is more reasonable, do you have any better idea for this situation. |
You can use |
|
@steinliber Great solution! |
good to know that! |
e25045c to
eead28a
Compare
|
@jxs1211 Pls check the error msg, you should handle the returned error. |
Signed-off-by: xian-jie.shen <327411586@qq.com>
eead28a to
a419c77
Compare
|
Thanks for the tests, and great work on the heated discussion about TempDir :) |
|
@jxs1211 Merged. Many thanks for the test! |



Signed-off-by: xian-jie.shen 327411586@qq.com
Pre-Checklist
Note: please complete ALL items in the following checklist.
Description
Maybe there is an OOM risk in this code, so try to fix it.
Related Issues
see #833 for the details
New Behavior (screenshots if needed)
add an defer for closing the file:

add a ut for the funcion: