Skip to content

Commit

Permalink
Revive testing.go
Browse files Browse the repository at this point in the history
  • Loading branch information
michiomochi committed Jul 17, 2024
1 parent 6d5b4a4 commit d405ce6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions testing.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package qg

import "github.com/jackc/pgx/v5/pgxpool"

// // TestInjectJobConn injects *pgxpool.Conn to Job
func TestInjectJobConn(j *Job, conn *pgxpool.Conn) *Job {
j.conn = conn
return j
}

// TestInjectJobTx injects tx to Job
func TestInjectJobTx(j *Job, tx Txer) *Job {
j.tx = tx
return j
}

0 comments on commit d405ce6

Please sign in to comment.