Commit Graph

3 Commits

Author SHA1 Message Date
Dave Collins 2fc049e83c Add tests for unrecognized reflect values.
In order to help future proof itself, spew handles unrecognized reflect
values by passing them on to the standard fmt library.  Since spew handles
all current reflect values in the language, this condition has to be
manually tested with a bit of hackery by using unsafe to change the kind
to a nonexistent value.

As of this commit, there is now 100% test coverage.
2013-01-20 22:31:09 -06:00
Dave Collins 3b5249e43e Consolidate tests for invalid reflect values. 2013-01-20 22:24:52 -06:00
Dave Collins 23b797ffdf Add tests for invalid reflect values. 2013-01-20 20:48:14 -06:00