[PR #8] [MERGED] Unit tests #17

Closed
opened 2026-02-28 01:18:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/therealpaulgg/ssh-sync-server/pull/8
Author: @therealpaulgg
Created: 5/17/2023
Status: Merged
Merged: 6/22/2023
Merged by: @therealpaulgg

Base: mainHead: unit-tests


📝 Commits (10+)

📊 Changes

42 files changed (+2839 additions, -502 deletions)

View changed files

📝 .vscode/launch.json (+1 -1)
📝 Dockerfile (+1 -0)
📝 go.mod (+12 -6)
📝 go.sum (+62 -0)
📝 internal/setup/main.go (+17 -0)
pkg/database/mock.go (+63 -0)
📝 pkg/database/models/machine.go (+0 -109)
📝 pkg/database/models/ssh_config.go (+0 -59)
📝 pkg/database/models/ssh_key.go (+0 -42)
📝 pkg/database/models/user.go (+0 -181)
pkg/database/query/mock.go (+93 -0)
📝 pkg/database/query/transaction.go (+21 -14)
pkg/database/query/transactionmock.go (+160 -0)
pkg/database/repository/machine.go (+121 -0)
pkg/database/repository/machine_test.go (+3 -0)
pkg/database/repository/machinemock.go (+126 -0)
pkg/database/repository/ssh_config.go (+57 -0)
pkg/database/repository/ssh_config_mock.go (+82 -0)
pkg/database/repository/ssh_config_test.go (+3 -0)
pkg/database/repository/ssh_key.go (+46 -0)

...and 22 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/therealpaulgg/ssh-sync-server/pull/8 **Author:** [@therealpaulgg](https://github.com/therealpaulgg) **Created:** 5/17/2023 **Status:** ✅ Merged **Merged:** 6/22/2023 **Merged by:** [@therealpaulgg](https://github.com/therealpaulgg) **Base:** `main` ← **Head:** `unit-tests` --- ### 📝 Commits (10+) - [`68b9a51`](https://github.com/therealpaulgg/ssh-sync-server/commit/68b9a514ed008176a41df094e3170d60e2fd95ac) write first unit test - [`1eadc1a`](https://github.com/therealpaulgg/ssh-sync-server/commit/1eadc1a38972e8ae5b0ee28fe8e72542a97148a3) add POST unit test - [`634eb14`](https://github.com/therealpaulgg/ssh-sync-server/commit/634eb1461481e9fc15b12a882a491e331af385de) new mock version fixed generics - [`c520382`](https://github.com/therealpaulgg/ssh-sync-server/commit/c5203826a4e5566b244aed5fd9a9d81d1f815264) add test requirement - [`ded27db`](https://github.com/therealpaulgg/ssh-sync-server/commit/ded27dbc591b1bbdc7f5c2fabde4bf12afb04c98) add coverage - [`27084b0`](https://github.com/therealpaulgg/ssh-sync-server/commit/27084b03ea4d040592854ba00826865f0b76afca) fail - [`acc767a`](https://github.com/therealpaulgg/ssh-sync-server/commit/acc767ac5b92cb7da568c7d95b4dd31c9f78d41d) user tests - [`7c8978e`](https://github.com/therealpaulgg/ssh-sync-server/commit/7c8978e8889ecbb2926723fa0db51ee065a46e32) code coverage - [`74b0a07`](https://github.com/therealpaulgg/ssh-sync-server/commit/74b0a07a823e3ed52d1da1a9227556a7c680427c) user repository - [`fb6de38`](https://github.com/therealpaulgg/ssh-sync-server/commit/fb6de38a6a8bc659c159ce1d18b07664d309dad3) machine repository ### 📊 Changes **42 files changed** (+2839 additions, -502 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/launch.json` (+1 -1) 📝 `Dockerfile` (+1 -0) 📝 `go.mod` (+12 -6) 📝 `go.sum` (+62 -0) 📝 `internal/setup/main.go` (+17 -0) ➕ `pkg/database/mock.go` (+63 -0) 📝 `pkg/database/models/machine.go` (+0 -109) 📝 `pkg/database/models/ssh_config.go` (+0 -59) 📝 `pkg/database/models/ssh_key.go` (+0 -42) 📝 `pkg/database/models/user.go` (+0 -181) ➕ `pkg/database/query/mock.go` (+93 -0) 📝 `pkg/database/query/transaction.go` (+21 -14) ➕ `pkg/database/query/transactionmock.go` (+160 -0) ➕ `pkg/database/repository/machine.go` (+121 -0) ➕ `pkg/database/repository/machine_test.go` (+3 -0) ➕ `pkg/database/repository/machinemock.go` (+126 -0) ➕ `pkg/database/repository/ssh_config.go` (+57 -0) ➕ `pkg/database/repository/ssh_config_mock.go` (+82 -0) ➕ `pkg/database/repository/ssh_config_test.go` (+3 -0) ➕ `pkg/database/repository/ssh_key.go` (+46 -0) _...and 22 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 01:18:02 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ssh-sync-server#17
No description provided.