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

Function TestLoadTheme_EmptyRef_Error

pkg/tui/styles/theme_test.go:386–393  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

384}
385
386func TestLoadTheme_EmptyRef_Error(t *testing.T) {
387 t.Parallel()
388
389 // LoadTheme("") should return an error - caller should pass a valid ref
390 _, err := LoadTheme("")
391 require.Error(t, err)
392 assert.Contains(t, err.Error(), "empty ref")
393}
394
395func TestValidateThemeRef(t *testing.T) {
396 t.Parallel()

Callers

nothing calls this directly

Calls 2

LoadThemeFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected