3c37daec2f4d3def4b3b21668c6c2e80d3265a69 | Author: Leigh McCulloch <leigh@mcchouse.com>
| 2018-05-30 01:37:31-07:00
Update vgo go.mod and go.modverify (#1133)
What
===
Update the vgo files, go.mod and go.modverify using the latest version
of vgo, `vgo:2018-02-20.1`.
Why
===
A recent version of vgo shipped changes to how go.modverify is populated
for packages hosted as gopkg.in, and removed quotes from package names.
92aa5d3d0b2bdd4ba1b8956d0e9944c1c7c940b2 | Author: Leigh McCulloch <leigh@mcchouse.com>
| 2017-04-26 14:43:44-07:00
Add go1.8 to CI tests (#897)
* Add go1.8 to CI tests
What
===
Add go1.8 to CI tests.
Why
===
It's the latest Go release and we should be ensuring tests pass on it.
* Remove go1.6 from CI tests.
What
===
Remove go1.6 from CI tests.
Why
===
The gocql README calls out that the last two major versions will be
supported. The last two major versions are go1.7 and go1.8.
329465aea2c3e92f96362a2ef1ae5ae225566f93 | Author: Leigh McCulloch <leigh@mcchouse.com>
| 2017-04-09 08:58:42-07:00
marshal: Add an error when UUID has wrong length (#890)
* marshal: Add expectations to errors for Marshaling
What
===
Add explicit expectations to exactly what error is returned in
test cases where the marshal and unmarshal results in an error.
Why
===
In cases where an unmarshal fails the presence of an error was expected
but not what error was returned. Marshal is not tested for the cases
where it fails in the table tests. Both of these are needed to add
more tests that test for new errors being returned.
* marshal: Add an error when UUID has wrong length
What
===
Add a descriptive error when a UUID is attempted to be marshaled or
unmarshaled and the length of the []byte is not exactly 16 bytes long.
Example
===
```
can not marshal []byte 6 bytes long into timeuuid, must be exactly 16 bytes long
```
Why
===
In cases where UUID []byte was not the correct length the generic `can
not marshal %T into %s` error was being returned. The error was
misleading because it gave the impression the root cause was the type of
the data and not it's length. Additionally the `%T` formatter for a
`[]byte` prints out `[]uint8` which was even more confusing.
* authors: Add Leigh McCulloch to AUTHORS
What
===
Add `Leigh McCulloch` to AUTHORS.
Why
===
As part of his first contribution.