MCPcopy Index your code
hub / github.com/cli/cli / TestContent

Function TestContent

internal/licenses/licenses_test.go:12–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestContent(t *testing.T) {
13 // This test is to ensure that we don't accidentally commit actual license
14 // files in the repo. The embedded content is only included in release builds,
15 // so in a normal test build we should get a default message.
16 require.Equal(t, "License information is only available in official release builds.\n", Content())
17}
18
19func TestContent_tableTests(t *testing.T) {
20 tests := []struct {

Callers

nothing calls this directly

Calls 2

ContentFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected