Skip to content

Commit

Permalink
gofmt files
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-roehrich committed Mar 17, 2024
1 parent faf3ace commit cdf7e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgtype/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ func TestTimeTextScanner(t *testing.T) {
assert.Equal(t, int64(15*time.Hour+4*time.Minute+5*time.Second), pgTime.Microseconds*int64(time.Microsecond))

const mirco = "789123"
const woFraction = int64(4*time.Hour+5*time.Minute+6*time.Second) // time without fraction
const woFraction = int64(4*time.Hour + 5*time.Minute + 6*time.Second) // time without fraction
for i := 0; i < len(mirco); i++ {
assert.NoError(t, pgTime.Scan("04:05:06." + mirco[:i]))
assert.NoError(t, pgTime.Scan("04:05:06."+mirco[:i]))
assert.Equal(t, true, pgTime.Valid)

frac, _ := strconv.ParseInt(mirco[:i], 10, 64)
Expand Down

0 comments on commit cdf7e85

Please sign in to comment.