Skip to content

Commit

Permalink
Merge pull request #24 from zerkms/CODEC_AND_SQL_CODE_COVERAGE
Browse files Browse the repository at this point in the history
Covered UUID.decodePlain() with wrong input with a test
  • Loading branch information
zerkms authored Jul 18, 2018
2 parents 87edc3e + 774487f commit 1ce602f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@ func TestMarshalText(t *testing.T) {
}
}

func TestDecodePlainWithWrongLength(t *testing.T) {
arg := []byte{'4', '2'}

u := UUID{}

if u.decodePlain(arg) == nil {
t.Errorf("%v.decodePlain(%q): should return error, but it did not", u, arg)
}
}

var stringBenchmarkSink string

func BenchmarkString(b *testing.B) {
Expand Down

0 comments on commit 1ce602f

Please sign in to comment.