From b0327914c573ceb28527eb474ac9671cbf89bd55 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 15 Dec 2016 22:38:38 -0800 Subject: [PATCH] Fix small lint and unit test issues Pull request ci was not running and caused these minor issues to not be caught. Signed-off-by: Derek McGowan (github: dmcgowan) --- digest/algorithm.go | 2 +- digest/digest.go | 2 +- reference/reference_test.go | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/digest/algorithm.go b/digest/algorithm.go index b71314e6..e4842d9d 100644 --- a/digest/algorithm.go +++ b/digest/algorithm.go @@ -79,7 +79,7 @@ func (a *Algorithm) Set(value string) error { return nil } -// New returns a new digester for the specified algorithm. If the algorithm +// Digester returns a new digester for the specified algorithm. If the algorithm // does not have a digester implementation, nil will be returned. This can be // checked by calling Available before calling New. func (a Algorithm) Digester() Digester { diff --git a/digest/digest.go b/digest/digest.go index a9ab8e51..df97fd01 100644 --- a/digest/digest.go +++ b/digest/digest.go @@ -61,7 +61,7 @@ var ( ErrDigestUnsupported = fmt.Errorf("unsupported digest algorithm") ) -// ParseDigest parses s and returns the validated digest object. An error will +// Parse parses s and returns the validated digest object. An error will // be returned if the format is invalid. func Parse(s string) (Digest, error) { d := Digest(s) diff --git a/reference/reference_test.go b/reference/reference_test.go index 405c47c0..be708c4d 100644 --- a/reference/reference_test.go +++ b/reference/reference_test.go @@ -1,6 +1,8 @@ package reference import ( + _ "crypto/sha256" + _ "crypto/sha512" "encoding/json" "strconv" "strings"