mirror of
https://github.com/therealpaulgg/ssh-sync-server.git
synced 2026-04-25 07:35:49 +03:00
[PR #28] [WIP] Need to add additional unit tests for #30
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ssh-sync-server#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/therealpaulgg/ssh-sync-server/pull/28
Author: @Copilot
Created: 5/22/2025
Status: 🔄 Open
Base:
main← Head:copilot/fix-9📝 Commits (9)
25bb6ceInitial plan for issue7eb0930Initial plan for adding unit testsfe27febAdd database query and repository unit tests8e8e950Add web API route tests and WebSocket tests8718d84Improve WebSocket channel logic tests2f0149bRemove unnecessary WebSocket test commentsa2e5935Update ssh_config_test.go to use gomock instead of manual mocksaf935b7update modf8d8a7cAdd tests for WebSocket connection handlers in pkg/web/live📊 Changes
14 files changed (+2145 additions, -18 deletions)
View changed files
➕
coverage.out(+78 -0)📝
go.mod(+3 -1)📝
go.sum(+2 -0)➕
pkg/database/query/main_test.go(+143 -0)➕
pkg/database/query/transaction_test.go(+142 -0)➕
pkg/database/repository/mock/machine.go(+126 -0)➕
pkg/database/repository/mock/user.go(+226 -0)📝
pkg/database/repository/ssh_config_test.go(+317 -1)📝
pkg/web/live/main.go(+1 -1)📝
pkg/web/live/main_test.go(+566 -1)➕
pkg/web/live/mock_handler_test.go(+34 -0)➕
pkg/web/live/mock_test.go(+245 -0)➕
pkg/web/live/test_main_test.go(+15 -0)📝
pkg/web/router/routes/data_test.go(+247 -14)📄 Description
Fixes #9.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.