MCPcopy Create free account
hub / github.com/astercloud/aster / TestLoadAgentConfigFileNotFound

Function TestLoadAgentConfigFileNotFound

pkg/config/loader_test.go:263–269  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

261}
262
263func TestLoadAgentConfigFileNotFound(t *testing.T) {
264 loader := NewLoader()
265 _, err := loader.LoadAgentConfig("/nonexistent/path/config.yaml")
266 if err == nil {
267 t.Error("expected error for nonexistent file")
268 }
269}
270
271func TestLoadAgentConfigInvalidYAML(t *testing.T) {
272 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 3

LoadAgentConfigMethod · 0.95
NewLoaderFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected