feat(testing): add comprehensive test coverage and code quality improvements #76

Merged
bagas merged 47 commits from feat/testing into staging 2026-01-27 16:36:40 +07:00
2 changed files with 1446 additions and 2 deletions
Showing only changes of commit 14abac6579 - Show all commits
+4 -2
View File
@@ -412,8 +412,10 @@ func readSSHString(reader io.Reader) (string, error) {
return "", err
}
strBytes := make([]byte, length)
if _, err := reader.Read(strBytes); err != nil {
return "", err
if length > 0 {
if _, err := io.ReadFull(reader, strBytes); err != nil {
return "", err
}
}
return string(strBytes), nil
}
File diff suppressed because it is too large Load Diff