Add code coverage

This commit is contained in:
Alvaro Lopez Espinosa 2018-03-09 16:04:50 +00:00
parent f6af706459
commit 58936429ea
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Enumer
# Enumer ![cover.run go](https://cover.run/go/github.com/alvaroloes/enumer.svg?tag=golang-1.10)
Enumer is a tool to generate Go code that adds useful methods to Go enums (constants with a specific type).
It started as a fork of [Rob Pikes Stringer tool](https://godoc.org/golang.org/x/tools/cmd/stringer).

View File

@ -34,6 +34,7 @@ func (i %[1]s) IsA%[1]s() bool {
return false
}
`
// Arguments to format are:
// [1]: type name
const stringBelongsMethodSet = `// IsA%[1]s returns "true" if the value is listed in the enum definition. "false" otherwise