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

Function TestLabelActionsResult

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

Source from the content-addressed store, hash-verified

179}
180
181func TestLabelActionsResult(t *testing.T) {
182 t.Parallel()
183
184 t.Run("public repo actions result is untrusted and public", func(t *testing.T) {
185 t.Parallel()
186 label := LabelActionsResult(false)
187 assert.Equal(t, IntegrityUntrusted, label.Integrity)
188 assert.Equal(t, ConfidentialityPublic, label.Confidentiality)
189 })
190
191 t.Run("private repo actions result is untrusted and private", func(t *testing.T) {
192 t.Parallel()
193 label := LabelActionsResult(true)
194 assert.Equal(t, IntegrityUntrusted, label.Integrity)
195 assert.Equal(t, ConfidentialityPrivate, label.Confidentiality)
196 })
197}
198
199func TestLabelSecurityAlert(t *testing.T) {
200 t.Parallel()

Callers

nothing calls this directly

Calls 1

LabelActionsResultFunction · 0.85

Tested by

no test coverage detected