()
| 61 | } |
| 62 | |
| 63 | func (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 | |
| 84 | func (s *testSuite) TestWritePermissions() { |
| 85 | s.T().Run("invalid credentials", func(t *testing.T) { |
nothing calls this directly
no test coverage detected