MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestErrorBasic

Function TestErrorBasic

internal/telemetry/telemetry_test.go:10–19  ·  view source on GitHub ↗

TestErrorBasic does a very simple sanity check to ensure the error can be sent to the sentry and segment buffers

(t *testing.T)

Source from the content-addressed store, hash-verified

8// TestErrorBasic does a very simple sanity check to ensure the error can be sent
9// to the sentry and segment buffers
10func TestErrorBasic(t *testing.T) {
11 segmentBufferDir = t.TempDir()
12 sentryBufferDir = t.TempDir()
13 started = true
14
15 fakeErr := errors.New("fake error")
16 meta := Metadata{}
17
18 Error(fakeErr, meta)
19}

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected