You've already forked go-digest
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:
@ -72,6 +72,10 @@ func (a *Algorithm) Set(value string) error {
|
||||
*a = Algorithm(value)
|
||||
}
|
||||
|
||||
if !a.Available() {
|
||||
return ErrDigestUnsupported
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user