Add server unit testing #73

Open
luca0N wants to merge 4 commits from dev_server_tests into dev
Owner

Create tests in the server project, as required by issue #11.

  • account.go
  • api.go
  • config.go
  • crypto.go
  • db.go
  • env.go
  • lib.go
  • main.go
  • net.go
  • ws.go
Create tests in the server project, as required by issue #11. - [x] `account.go` - [ ] `api.go` - [x] `config.go` - [x] `crypto.go` - [ ] `db.go` - [ ] `env.go` - [ ] `lib.go` - [ ] `main.go` - [x] `net.go` - [ ] `ws.go`
luca0N self-assigned this 2026-05-12 23:21:52 +00:00
Create tests for private functions in the `account.go' source file.
Create tests for private functions in the `net.go' source file.  The
`isHostAuthorized()` function has been omitted in the tests for this
commit, as it requires configuration parsing.
Create tests for private functions in the `crypto.go' source file, and
add new variable to `crypto.go' to prevent double initialization via
`initCrypto()'.
Create tests for private functions in the `config.go' source file, and
fix an issue which caused the default value for the
`config.Accounts.RequireAuth' option to be `true' instead of `false'.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dev_server_tests:dev_server_tests
git switch dev_server_tests

Merge

Merge the changes and update on Forgejo.
git switch dev
git merge --no-ff dev_server_tests
git switch dev_server_tests
git rebase dev
git switch dev
git merge --ff-only dev_server_tests
git switch dev_server_tests
git rebase dev
git switch dev
git merge --no-ff dev_server_tests
git switch dev
git merge --squash dev_server_tests
git switch dev
git merge --ff-only dev_server_tests
git switch dev
git merge dev_server_tests
git push origin dev
Sign in to join this conversation.
No reviewers
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
luca0N/lanbassador!73
No description provided.