forked from TrueCloudLab/distribution
digest: better test coverage
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
6a74c94bf8
commit
ecb2ee3824
4 changed files with 116 additions and 11 deletions
|
@ -72,6 +72,10 @@ func (a *Algorithm) Set(value string) error {
|
|||
*a = Algorithm(value)
|
||||
}
|
||||
|
||||
if !a.Available() {
|
||||
return ErrDigestUnsupported
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue