(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestLabelRepoMetadata(t *testing.T) { |
| 96 | t.Parallel() |
| 97 | |
| 98 | t.Run("public repo metadata is trusted and public", func(t *testing.T) { |
| 99 | t.Parallel() |
| 100 | label := LabelRepoMetadata(false) |
| 101 | assert.Equal(t, IntegrityTrusted, label.Integrity) |
| 102 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 103 | }) |
| 104 | |
| 105 | t.Run("private repo metadata is trusted and private", func(t *testing.T) { |
| 106 | t.Parallel() |
| 107 | label := LabelRepoMetadata(true) |
| 108 | assert.Equal(t, IntegrityTrusted, label.Integrity) |
| 109 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 110 | }) |
| 111 | } |
| 112 | |
| 113 | func TestLabelGetMe(t *testing.T) { |
| 114 | t.Parallel() |
nothing calls this directly
no test coverage detected