[PR #20] [MERGED] Add unit tests for ./cmd #494

Closed
opened 2026-02-25 23:34:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-shiori/shiori/pull/20
Author: @peteretelej
Created: 3/2/2018
Status: Merged
Merged: 3/6/2018
Merged by: @RadhiFadlillah

Base: masterHead: wip/tests


📝 Commits (6)

  • 056be03 Add tests for cmd package
  • a747852 Merge branch 'master' into wip/tests
  • 5f790c7 Replace strings.Builder for backward Go compability
  • 5bea3de Fix: error scan on Go 1.8
  • 8b31568 Revert unneeded change
  • b16c5cc Convert template.HTML to string

📊 Changes

9 files changed (+265 additions, -25 deletions)

View changed files

📝 cmd/account.go (+7 -5)
cmd/account_test.go (+50 -0)
📝 cmd/add.go (+1 -2)
cmd/add_test.go (+73 -0)
cmd/cmd_test.go (+28 -0)
📝 cmd/update.go (+1 -2)
cmd/update_test.go (+91 -0)
📝 database/sqlite.go (+2 -2)
📝 model/model.go (+12 -14)

📄 Description

Adds testing for cmd package. Adds a setup and teardown main test with a cmd test db as well as testing for account.

Closes #19 (tests issue)


🔄 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/go-shiori/shiori/pull/20 **Author:** [@peteretelej](https://github.com/peteretelej) **Created:** 3/2/2018 **Status:** ✅ Merged **Merged:** 3/6/2018 **Merged by:** [@RadhiFadlillah](https://github.com/RadhiFadlillah) **Base:** `master` ← **Head:** `wip/tests` --- ### 📝 Commits (6) - [`056be03`](https://github.com/go-shiori/shiori/commit/056be03158051e1cd05db94f599dade30fdaf7f3) Add tests for cmd package - [`a747852`](https://github.com/go-shiori/shiori/commit/a747852728f42d3742945deff286be2d13b5ba1b) Merge branch 'master' into wip/tests - [`5f790c7`](https://github.com/go-shiori/shiori/commit/5f790c705c7efd00d226f3023fa08b86d44c2da4) Replace strings.Builder for backward Go compability - [`5bea3de`](https://github.com/go-shiori/shiori/commit/5bea3de59b89b0981be812580ab545cd77653c4a) Fix: error scan on Go 1.8 - [`8b31568`](https://github.com/go-shiori/shiori/commit/8b31568eaf3f4956778adcb72cc6fa44704e83c7) Revert unneeded change - [`b16c5cc`](https://github.com/go-shiori/shiori/commit/b16c5cc363e5f06abaedfbf996fffcebddbe2788) Convert template.HTML to string ### 📊 Changes **9 files changed** (+265 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `cmd/account.go` (+7 -5) ➕ `cmd/account_test.go` (+50 -0) 📝 `cmd/add.go` (+1 -2) ➕ `cmd/add_test.go` (+73 -0) ➕ `cmd/cmd_test.go` (+28 -0) 📝 `cmd/update.go` (+1 -2) ➕ `cmd/update_test.go` (+91 -0) 📝 `database/sqlite.go` (+2 -2) 📝 `model/model.go` (+12 -14) </details> ### 📄 Description Adds testing for **cmd** package. Adds a setup and teardown main test with a cmd test db as well as testing for account. Closes #19 (tests issue) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 23:34:30 +03:00
Sign in to join this conversation.
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/shiori#494
No description provided.