MCPcopy
hub / github.com/github/github-mcp-server / TestLabelRepoUserContent

Function TestLabelRepoUserContent

pkg/ifc/ifc_test.go:27–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func 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
45func TestLabelSearchIssues(t *testing.T) {
46 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelRepoUserContentFunction · 0.85

Tested by

no test coverage detected