(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestLabelCommitContents(t *testing.T) { |
| 164 | t.Parallel() |
| 165 | |
| 166 | t.Run("public repo commit content is untrusted and public", func(t *testing.T) { |
| 167 | t.Parallel() |
| 168 | label := LabelCommitContents(false) |
| 169 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 170 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 171 | }) |
| 172 | |
| 173 | t.Run("private repo commit content is trusted and private", func(t *testing.T) { |
| 174 | t.Parallel() |
| 175 | label := LabelCommitContents(true) |
| 176 | assert.Equal(t, IntegrityTrusted, label.Integrity) |
| 177 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 178 | }) |
| 179 | } |
| 180 | |
| 181 | func TestLabelActionsResult(t *testing.T) { |
| 182 | t.Parallel() |
nothing calls this directly
no test coverage detected