Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: add tests for point construction
These tests check that NewPoint and NewPointFromBytes return an error if: * arguments specify a point with no fields * arguments specify a point with a field that has an empty name These tests also check that Point.Fields() always returns, even in the presence of corrupt binary data read with NewPointFromBytes. These tests fail at this commit and are fixed by a subsequent commit. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
- Loading branch information