diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-23 14:15:43 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-23 14:15:43 +0200 |
| commit | d4738888bc71e7aaa45d911b3fc3e3f6905ce9fd (patch) | |
| tree | c2afa69389aa80ecea79ff787085f99439469c38 /internal/file/file.go | |
| parent | acb50fbc6f5ea2b97613593c7aea21304f3fb459 (diff) | |
initial unit test
Diffstat (limited to 'internal/file/file.go')
| -rw-r--r-- | internal/file/file.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/file/file.go b/internal/file/file.go index 7d9d7e8..513212b 100644 --- a/internal/file/file.go +++ b/internal/file/file.go @@ -155,6 +155,5 @@ func (f pathnameFile) String() string { // As data comes in from arrays, converted to slices, there will be null-bytes at the end.. func stringValue(byteStr []byte) string { - // TODO: Hopefully, this won't cause a panic when the filename is as long as the array itself. Unit test this! return string(byteStr[:bytes.IndexByte(byteStr, 0)]) } |
