···
func TestVoteRepo_Create(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Create_Idempotent(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Create_VoterNotFound(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByURI(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByURI_NotFound(t *testing.T) {
+
defer func() { _ = db.Close() }()
repo := NewVoteRepository(db)
ctx := context.Background()
···
func TestVoteRepo_GetByVoterAndSubject(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_GetByVoterAndSubject_NotFound(t *testing.T) {
+
defer func() { _ = db.Close() }()
repo := NewVoteRepository(db)
ctx := context.Background()
···
func TestVoteRepo_Delete(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_Delete_Idempotent(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_ListBySubject(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)
···
func TestVoteRepo_ListByVoter(t *testing.T) {
+
defer func() { _ = db.Close() }()
defer cleanupVotes(t, db)
repo := NewVoteRepository(db)