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

Function TestFormatOrderedMapValue_NilValue

server/format_ordered_map_test.go:38–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestFormatOrderedMapValue_NilValue(t *testing.T) {
39 m := arrowmap.OrderedMapValue{Keys: []any{"k"}, Values: []any{nil}}
40 got := formatOrderedMapValue(m)
41 if got != "{k=}" {
42 t.Errorf("formatOrderedMapValue = %q, want %q", got, "{k=}")
43 }
44}
45
46func TestFormatOrderedMapValue_PreservesOrder(t *testing.T) {
47 m := arrowmap.OrderedMapValue{

Callers

nothing calls this directly

Calls 1

formatOrderedMapValueFunction · 0.85

Tested by

no test coverage detected