(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestLabelRepoUserContent(t *testing.T) { |
| 28 | t.Parallel() |
| 29 | |
| 30 | t.Run("public repo user content is untrusted and public", func(t *testing.T) { |
| 31 | t.Parallel() |
| 32 | label := LabelRepoUserContent(false) |
| 33 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 34 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 35 | }) |
| 36 | |
| 37 | t.Run("private repo user content is trusted and private", func(t *testing.T) { |
| 38 | t.Parallel() |
| 39 | label := LabelRepoUserContent(true) |
| 40 | assert.Equal(t, IntegrityTrusted, label.Integrity) |
| 41 | assert.Equal(t, ConfidentialityPrivate, label.Confidentiality) |
| 42 | }) |
| 43 | } |
| 44 | |
| 45 | func TestLabelSearchIssues(t *testing.T) { |
| 46 | t.Parallel() |
nothing calls this directly
no test coverage detected