(t *testing.T)
| 272 | } |
| 273 | |
| 274 | func TestLabelProject(t *testing.T) { |
| 275 | t.Parallel() |
| 276 | |
| 277 | t.Run("public project is untrusted and public", func(t *testing.T) { |
| 278 | t.Parallel() |
| 279 | label := LabelProject(false) |
| 280 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 281 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 282 | }) |
| 283 | |
| 284 | t.Run("private project metadata is trusted and private", func(t *testing.T) { |
| 285 | t.Parallel() |
| 286 | label := LabelProject(true) |
| 287 | assert.Equal(t, IntegrityTrusted, label.Integrity) |
| 288 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 289 | }) |
| 290 | } |
| 291 | |
| 292 | func TestLabelProjectList(t *testing.T) { |
| 293 | t.Parallel() |
nothing calls this directly
no test coverage detected