(t *testing.T)
| 334 | } |
| 335 | |
| 336 | func TestLabelProjectContent(t *testing.T) { |
| 337 | t.Parallel() |
| 338 | |
| 339 | t.Run("public project content is untrusted and public", func(t *testing.T) { |
| 340 | t.Parallel() |
| 341 | label := LabelProjectContent(false) |
| 342 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 343 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 344 | }) |
| 345 | |
| 346 | t.Run("private project content is untrusted and private", func(t *testing.T) { |
| 347 | t.Parallel() |
| 348 | label := LabelProjectContent(true) |
| 349 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 350 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 351 | }) |
| 352 | } |
| 353 | |
| 354 | func TestLabelTeam(t *testing.T) { |
| 355 | t.Parallel() |
nothing calls this directly
no test coverage detected