MCPcopy Create free account
hub / github.com/cli/cli / TestValidDigestAlgorithms

Function TestValidDigestAlgorithms

pkg/cmd/attestation/artifact/digest/digest_test.go:38–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestValidDigestAlgorithms(t *testing.T) {
39 t.Run("includes sha256", func(t *testing.T) {
40 assert.Contains(t, ValidDigestAlgorithms(), "sha256")
41 })
42
43 t.Run("includes sha512", func(t *testing.T) {
44 assert.Contains(t, ValidDigestAlgorithms(), "sha512")
45 })
46}

Callers

nothing calls this directly

Calls 3

ValidDigestAlgorithmsFunction · 0.85
ContainsMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected