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

Function TestEmbeddedIconsExist

pkg/octicons/octicons_test.go:107–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestEmbeddedIconsExist(t *testing.T) {
108 // Test that all required icons from required_icons.txt are properly embedded
109 // This is the single source of truth for which icons should be available
110 expectedIcons := RequiredIcons()
111 for _, icon := range expectedIcons {
112 t.Run(icon, func(t *testing.T) {
113 lightURI := DataURI(icon, ThemeLight)
114 darkURI := DataURI(icon, ThemeDark)
115 assert.True(t, strings.HasPrefix(lightURI, "data:image/png;base64,"), "light theme icon %s should be embedded", icon)
116 assert.True(t, strings.HasPrefix(darkURI, "data:image/png;base64,"), "dark theme icon %s should be embedded", icon)
117 })
118 }
119}

Callers

nothing calls this directly

Calls 2

RequiredIconsFunction · 0.85
DataURIFunction · 0.85

Tested by

no test coverage detected