(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func 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 | |
| 93 | func TestReadQueryFile_ValidYAMLFile(t *testing.T) { |
| 94 | // Create a temporary YAML file for testing |
nothing calls this directly
no test coverage detected