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

Function TestLabelRepoMetadata

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

Source from the content-addressed store, hash-verified

93}
94
95func TestLabelRepoMetadata(t *testing.T) {
96 t.Parallel()
97
98 t.Run("public repo metadata is trusted and public", func(t *testing.T) {
99 t.Parallel()
100 label := LabelRepoMetadata(false)
101 assert.Equal(t, IntegrityTrusted, label.Integrity)
102 assert.Equal(t, ConfidentialityPublic, label.Confidentiality)
103 })
104
105 t.Run("private repo metadata is trusted and private", func(t *testing.T) {
106 t.Parallel()
107 label := LabelRepoMetadata(true)
108 assert.Equal(t, IntegrityTrusted, label.Integrity)
109 assert.Equal(t, ConfidentialityPrivate, label.Confidentiality)
110 })
111}
112
113func TestLabelGetMe(t *testing.T) {
114 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelRepoMetadataFunction · 0.85

Tested by

no test coverage detected