MCPcopy Create free account
hub / github.com/coder/coder / TestParseConfig_FileNotFound

Function TestParseConfig_FileNotFound

agent/x/agentmcp/config_test.go:241–246  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func TestParseConfig_FileNotFound(t *testing.T) {
242 t.Parallel()
243
244 _, err := agentmcp.ParseConfig(filepath.Join(t.TempDir(), "nonexistent.json"))
245 require.Error(t, err)
246}
247
248// mustJSON marshals v to a JSON string, failing the test on error.
249func mustJSON(t *testing.T, v any) string {

Callers

nothing calls this directly

Calls 3

ParseConfigFunction · 0.92
TempDirMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected