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

Function TestInit_InvalidQueryPath

modules/azurelogs/session_test.go:144–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

142}
143
144func 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
155func TestInit_NilQueryPath(t *testing.T) {
156 // Test Init with nil query path (should panic or handle gracefully)

Callers

nothing calls this directly

Calls 2

InitFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected