memos/store/test
cmuangs d649d326ef
fix: remove errors.Wrap(nil) (#4576)
* Fix errors.Wrap(nil)

* fix resource_test failure where resource does not exist
2025-03-31 12:56:51 +08:00
..
activity_test.go chore: move store test 2025-03-17 21:51:02 +08:00
idp_test.go chore: move store test 2025-03-17 21:51:02 +08:00
inbox_test.go chore: move store test 2025-03-17 21:51:02 +08:00
memo_relation_test.go chore: move store test 2025-03-17 21:51:02 +08:00
memo_test.go chore: move store test 2025-03-17 21:51:02 +08:00
migrator_test.go chore: move store test 2025-03-17 21:51:02 +08:00
reaction_test.go chore: move store test 2025-03-17 21:51:02 +08:00
README.md chore: move store test 2025-03-17 21:51:02 +08:00
resource_test.go fix: remove errors.Wrap(nil) (#4576) 2025-03-31 12:56:51 +08:00
store.go chore: fix linter 2025-03-17 21:52:35 +08:00
user_setting_test.go chore: move store test 2025-03-17 21:51:02 +08:00
user_test.go chore: move store test 2025-03-17 21:51:02 +08:00
webhook_test.go chore: move store test 2025-03-17 21:51:02 +08:00
workspace_setting_test.go chore: move store test 2025-03-17 21:51:02 +08:00

Store tests

How to test store with MySQL?

  1. Create a database in your MySQL server.
  2. Run the following command with two environment variables set:
DRIVER=mysql DSN=root@/memos_test go test -v ./test/store/...
  • DRIVER should be set to mysql.
  • DSN should be set to the DSN of your MySQL server.