ntfy-server/user
binwiederhier 909c3fe17b Add Store-level unit tests for SQLite and PostgreSQL backends
Add shared test functions in store_test.go covering all Store interface
operations (users, tokens, access control, tiers, billing, stats, etc.)
with per-backend wrappers in store_sqlite_test.go and store_postgres_test.go
following the webpush test pattern.

Fix broken isUniqueConstraintError() which used incorrect interface
assertions instead of string matching for SQLite/PostgreSQL errors.
2026-02-16 22:56:31 -05:00
..
manager.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
manager_test.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
store.go Add Store-level unit tests for SQLite and PostgreSQL backends 2026-02-16 22:56:31 -05:00
store_postgres.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
store_postgres_test.go Add Store-level unit tests for SQLite and PostgreSQL backends 2026-02-16 22:56:31 -05:00
store_sqlite.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
store_sqlite_migrations.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
store_sqlite_test.go Add Store-level unit tests for SQLite and PostgreSQL backends 2026-02-16 22:56:31 -05:00
store_test.go Add Store-level unit tests for SQLite and PostgreSQL backends 2026-02-16 22:56:31 -05:00
types.go Refactor user package to Store interface with PostgreSQL support 2026-02-16 22:39:54 -05:00
types_test.go fix linting issue 2024-04-07 21:40:24 -06:00
util.go Move things in user package 2026-02-16 21:04:15 -05:00
util_test.go Tests for user package 2026-02-16 20:49:17 -05:00