*** PRIVATE ***
| 183 | /// *** PRIVATE *** |
| 184 | |
| 185 | type digest struct { |
| 186 | digestType DigestType |
| 187 | casDigest cas.Digest |
| 188 | // Cache as we call String pretty often. |
| 189 | // We could do this lazily but not worth it. |
| 190 | stringValue string |
| 191 | } |
| 192 | |
| 193 | // validation should occur outside of this function. |
| 194 | func newDigest(digestType DigestType, casDigest cas.Digest) *digest { |
nothing calls this directly
no outgoing calls
no test coverage detected