MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / TestResourceName

Method TestResourceName

pkg/blobmanager/s3/backend_test.go:63–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (s *testSuite) TestResourceName() {
64 testCases := []struct {
65 name string
66 sha string
67 expected string
68 }{
69 {
70 name: "valid sha",
71 sha: "aabbccddeeff",
72 expected: "sha256:aabbccddeeff",
73 },
74 }
75
76 for _, tc := range testCases {
77 s.Run(tc.name, func() {
78 actual := resourceName(tc.sha)
79 s.Equal(tc.expected, actual)
80 })
81 }
82}
83
84func (s *testSuite) TestWritePermissions() {
85 s.T().Run("invalid credentials", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

resourceNameFunction · 0.70
RunMethod · 0.45

Tested by

no test coverage detected