(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func TestInit_InvalidQueryPath(t *testing.T) { |
| 145 | // Test Init with invalid query path |
| 146 | invalidPath := "/nonexistent/path/to/query.yml" |
| 147 | |
| 148 | sess, err := Init(&invalidPath) |
| 149 | |
| 150 | assert.Nil(t, sess) |
| 151 | assert.Error(t, err) |
| 152 | assert.Contains(t, err.Error(), "failed to read query file") |
| 153 | } |
| 154 | |
| 155 | func TestInit_NilQueryPath(t *testing.T) { |
| 156 | // Test Init with nil query path (should panic or handle gracefully) |