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

Function TestLabelProject

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

Source from the content-addressed store, hash-verified

272}
273
274func 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
292func TestLabelProjectList(t *testing.T) {
293 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelProjectFunction · 0.85

Tested by

no test coverage detected