(t *testing.T)
| 246 | } |
| 247 | |
| 248 | func TestLabelGist(t *testing.T) { |
| 249 | t.Parallel() |
| 250 | |
| 251 | t.Run("public gist is untrusted and public", func(t *testing.T) { |
| 252 | t.Parallel() |
| 253 | label := LabelGist() |
| 254 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 255 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 256 | }) |
| 257 | |
| 258 | t.Run("secret gist is untrusted and public", func(t *testing.T) { |
| 259 | t.Parallel() |
| 260 | label := LabelGist() |
| 261 | assert.Equal(t, IntegrityUntrusted, label.Integrity) |
| 262 | assert.Equal(t, ConfidentialityPublic, label.Confidentiality) |
| 263 | }) |
| 264 | } |
| 265 | |
| 266 | func TestLabelGistList(t *testing.T) { |
| 267 | t.Parallel() |
nothing calls this directly
no test coverage detected