(t *testing.T)
| 179 | } |
| 180 | |
| 181 | func TestLabelActionsResult(t *testing.T) { |
| 182 | t.Parallel() |
| 183 | |
| 184 | t.Run("public repo actions result is untrusted and public", func(t *testing.T) { |
| 185 | t.Parallel() |
| 186 | label := LabelActionsResult(false) |
| 187 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 188 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 189 | }) |
| 190 | |
| 191 | t.Run("private repo actions result is untrusted and private", func(t *testing.T) { |
| 192 | t.Parallel() |
| 193 | label := LabelActionsResult(true) |
| 194 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 195 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 196 | }) |
| 197 | } |
| 198 | |
| 199 | func TestLabelSecurityAlert(t *testing.T) { |
| 200 | t.Parallel() |
nothing calls this directly
no test coverage detected