MCPcopy Index your code
hub / github.com/larksuite/cli / TestWrapDoAPIError_Nil

Function TestWrapDoAPIError_Nil

internal/client/api_errors_test.go:192–196  ·  view source on GitHub ↗

TestWrapDoAPIError_Nil pins that nil in stays nil out (no allocation, no panic). Callers rely on this when the SDK returns success.

(t *testing.T)

Source from the content-addressed store, hash-verified

190// TestWrapDoAPIError_Nil pins that nil in stays nil out (no allocation, no
191// panic). Callers rely on this when the SDK returns success.
192func TestWrapDoAPIError_Nil(t *testing.T) {
193 if got := WrapDoAPIError(nil); got != nil {
194 t.Errorf("WrapDoAPIError(nil) = %v, want nil", got)
195 }
196}
197
198// ─────────────────────────────────────────────────────────────────────────────
199// WrapJSONResponseParseError: typed error contract.

Callers

nothing calls this directly

Calls 1

WrapDoAPIErrorFunction · 0.85

Tested by

no test coverage detected