MCPcopy
hub / github.com/wtfutil/wtf / TestReadQueryFileContent_NonexistentFile

Function TestReadQueryFileContent_NonexistentFile

modules/azurelogs/config_test.go:85–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestReadQueryFileContent_NonexistentFile(t *testing.T) {
86 // Test reading a file that doesn't exist
87 _, err := readQueryFileContent("/nonexistent/file.yaml")
88
89 assert.Error(t, err)
90 assert.Contains(t, err.Error(), "failed to read query config file")
91}
92
93func TestReadQueryFile_ValidYAMLFile(t *testing.T) {
94 // Create a temporary YAML file for testing

Callers

nothing calls this directly

Calls 2

readQueryFileContentFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected