*** PRIVATE ***
| 196 | /// *** PRIVATE *** |
| 197 | |
| 198 | type digest struct { |
| 199 | digestType DigestType |
| 200 | casDigest cas.Digest |
| 201 | // Cache as we call String pretty often. |
| 202 | // We could do this lazily but not worth it. |
| 203 | stringValue string |
| 204 | } |
| 205 | |
| 206 | // validation should occur outside of this function. |
| 207 | func newDigest(digestType DigestType, casDigest cas.Digest) *digest { |
nothing calls this directly
no outgoing calls
no test coverage detected