Closed darwish closed 5 years ago
Merging #151 into master will increase coverage by
0.03%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #151 +/- ##
==========================================
+ Coverage 91.21% 91.25% +0.03%
==========================================
Files 13 13
Lines 717 720 +3
==========================================
+ Hits 654 657 +3
Misses 44 44
Partials 19 19
Impacted Files | Coverage Δ | |
---|---|---|
sqlmock.go | 93.83% <100%> (+0.06%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update f7b0b93...e671f17. Read the comment docs.
thanks! probably I need to think how to simplify the locking in general, easy to make mistakes like this.
If the query runs in a separate goroutine from the one that
ExpectationsWereMet
is called in, the race detector finds an unsynchronized access to thee.triggered
variable.This can be tested by running the test added in this PR without the fix that the PR adds:
and you end up with something like: