···
func TestVoteRepo_Create(t *testing.T) {
55
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Create_Idempotent(t *testing.T) {
84
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Create_VoterNotFound(t *testing.T) {
126
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByURI(t *testing.T) {
156
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByURI_NotFound(t *testing.T) {
190
+
defer func() { _ = db.Close() }()
repo := NewVoteRepository(db)
ctx := context.Background()
···
func TestVoteRepo_GetByVoterAndSubject(t *testing.T) {
201
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByVoterAndSubject_NotFound(t *testing.T) {
236
+
defer func() { _ = db.Close() }()
repo := NewVoteRepository(db)
ctx := context.Background()
···
func TestVoteRepo_Delete(t *testing.T) {
247
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Delete_Idempotent(t *testing.T) {
286
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_ListBySubject(t *testing.T) {
319
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_ListByVoter(t *testing.T) {
365
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)