supplement of digest refactoring
This commit is contained in:
parent
fb81ecb0fa
commit
04f8bfbede
2 changed files with 9 additions and 1 deletions
|
@ -48,6 +48,11 @@ func TestParseDigest(t *testing.T) {
|
|||
input: "d41d8cd98f00b204e9800998ecf8427e",
|
||||
err: ErrDigestInvalidFormat,
|
||||
},
|
||||
{
|
||||
// not hex
|
||||
input: "sha256:d41d8cd98f00b204e9800m98ecf8427e",
|
||||
err: ErrDigestInvalidFormat,
|
||||
},
|
||||
{
|
||||
input: "foo:d41d8cd98f00b204e9800998ecf8427e",
|
||||
err: ErrDigestUnsupported,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue