MCPcopy
hub / github.com/docker/docker-agent / ReadFile

Method ReadFile

pkg/tui/styles/theme_test.go:34–42  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

32}
33
34func (fsys *blockingThemeFS) ReadFile(name string) ([]byte, error) {
35 if name == "themes/nord.yaml" {
36 fsys.once.Do(func() {
37 close(fsys.opened)
38 <-fsys.release
39 })
40 }
41 return fs.ReadFile(fsys.MapFS, name)
42}
43
44// TestRegisterBuiltinThemes_Integration exercises the full embedder loop:
45// register a theme from a real embed.FS, then discover, load, and apply it the

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected