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

Function TestLabelCommitContents

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

Source from the content-addressed store, hash-verified

161}
162
163func TestLabelCommitContents(t *testing.T) {
164 t.Parallel()
165
166 t.Run("public repo commit content is untrusted and public", func(t *testing.T) {
167 t.Parallel()
168 label := LabelCommitContents(false)
169 assert.Equal(t, IntegrityUntrusted, label.Integrity)
170 assert.Equal(t, ConfidentialityPublic, label.Confidentiality)
171 })
172
173 t.Run("private repo commit content is trusted and private", func(t *testing.T) {
174 t.Parallel()
175 label := LabelCommitContents(true)
176 assert.Equal(t, IntegrityTrusted, label.Integrity)
177 assert.Equal(t, ConfidentialityPrivate, label.Confidentiality)
178 })
179}
180
181func TestLabelActionsResult(t *testing.T) {
182 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelCommitContentsFunction · 0.85

Tested by

no test coverage detected