MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestLogQueryErrorClassifiesUserError

Function TestLogQueryErrorClassifiesUserError

server/conn_analytics_test.go:80–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78 t.Errorf("orgID = %q, want acme", e.orgID)
79 }
80 if e.props["error_category"] != "system" {
81 t.Errorf("error_category = %v, want system", e.props["error_category"])
82 }
83 if e.props["error_code"] != "XX000" {
84 t.Errorf("error_code = %v, want XX000", e.props["error_code"])
85 }
86 if e.props["application_name"] != "dagster" {
87 t.Errorf("application_name = %v, want dagster", e.props["application_name"])
88 }
89}
90
91func TestLogQueryErrorClassifiesUserError(t *testing.T) {
92 fake := installFakeQueryTracker(t)
93 c := &clientConn{orgID: "acme", username: "root", ctx: context.Background()}
94

Callers

nothing calls this directly

Calls 2

logQueryErrorMethod · 0.95
installFakeQueryTrackerFunction · 0.85

Tested by

no test coverage detected