MCPcopy
hub / github.com/cheat/cheat / TestValidatePathsUnsupported

Function TestValidatePathsUnsupported

internal/config/paths_test.go:145–150  ·  view source on GitHub ↗

TestValidatePathsUnsupported asserts that an error is returned on unsupported platforms

(t *testing.T)

Source from the content-addressed store, hash-verified

143// TestValidatePathsUnsupported asserts that an error is returned on
144// unsupported platforms
145func TestValidatePathsUnsupported(t *testing.T) {
146 _, err := Paths("unsupported", "", map[string]string{})
147 if err == nil {
148 t.Errorf("failed to return error on unsupported platform")
149 }
150}
151
152// TestValidatePathsCheatConfigPath asserts that the proper config path is
153// returned when `CHEAT_CONFIG_PATH` is explicitly specified.

Callers

nothing calls this directly

Calls 1

PathsFunction · 0.70

Tested by

no test coverage detected