1
0
mirror of https://github.com/opencontainers/go-digest.git synced 2025-07-30 00:21:10 +03:00

digest: better test coverage

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2016-12-15 17:21:57 -08:00
parent f2bbe83d53
commit f8e420604f
4 changed files with 116 additions and 11 deletions

View File

@ -72,6 +72,10 @@ func (a *Algorithm) Set(value string) error {
*a = Algorithm(value)
}
if !a.Available() {
return ErrDigestUnsupported
}
return nil
}