MCPcopy Index your code
hub / github.com/github/github-mcp-server / TestLabelProjectContent

Function TestLabelProjectContent

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

Source from the content-addressed store, hash-verified

334}
335
336func 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
354func TestLabelTeam(t *testing.T) {
355 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelProjectContentFunction · 0.85

Tested by

no test coverage detected